This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 201308290001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17 OS: Windows 8 User Comments: GUEST: It was taking too long to scan in the background. The project is the JDK, so is big. muellermi: open file in editor by doble click in search results muellermi: open file in editor (by double click on project tree) Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.MemberEnter$Synthesizer.visit(MemberEnter.java:1583) at com.sun.tools.javac.comp.MemberEnter$7.getModelType(MemberEnter.java:1565) at com.sun.tools.javac.code.Symbol$ClassSymbol.getSuperclass(Symbol.java:1054) at com.sun.tools.javac.code.Symbol$ClassSymbol.getSuperclass(Symbol.java:886) at org.netbeans.modules.java.hints.ExportNonAccessibleElement.visitType(ExportNonAccessibleElement.java:222) at org.netbeans.modules.java.hints.ExportNonAccessibleElement.visitType(ExportNonAccessibleElement.java:92)
Created attachment 139411 [details] stacktrace
My comment at the following link may be useful: http://statistics.netbeans.org/analytics/exception.do?id=696223
Created attachment 141091 [details] stacktrace My current source is as follows, but the key point probably is that the project's JDK currently does not have any rt.jar. I.e. no java.lang. package test; public enum Test { VALUE { @Override void doSomething() { method("VALUE", 42); } }; abstract void doSomething(); public static void method(String value) { method(value, 0); } private static void method(String value, int number) { } }
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=196774
Created attachment 144383 [details] stacktrace Typing
Created attachment 145698 [details] stacktrace The problem occured right after Startup
Created attachment 147479 [details] stacktrace NPE when opening enum class
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=196774
Created attachment 150545 [details] stacktrace opening a project
*** Bug 237223 has been marked as a duplicate of this bug. ***
Created attachment 151207 [details] stacktrace opened a nb module and just clicked on a java file in the Projects tab
Created attachment 151453 [details] stacktrace Open java file from project when target JDK is missed
One way to reproduce this is to install Netbeans under JDK9. Because Netbeans won't be able to find rt.jar, you will end up with this stack-trace.
Created attachment 155491 [details] stacktrace opening file in editor