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.
Summary: | NullPointerException at com.sun.tools.javac.comp.MemberEnter$Synthesizer.visit | ||
---|---|---|---|
Product: | java | Reporter: | muellermi <muellermi> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | NEW --- | ||
Severity: | normal | CC: | akrasny, ceritandogan, dimaki, gtzabari, jiriprox, jlahoda, lopsided98, mkhramov, muellermi, tboudreau, themanwhosold, tomas.langer, vkvashin, yardus |
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 196774 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
muellermi
2013-08-29 08:52:57 UTC
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
|