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.
This bug was originally marked as duplicate of bug 159166, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201309100337) VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15 OS: Linux User Comments: tomzi: . tomzi: . tomzi: . Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Lower.visitApply(Lower.java:2975) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465) at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58) at com.sun.tools.javac.comp.Lower.translate(Lower.java:2296) at com.sun.tools.javac.tree.TreeTranslator.visitExec(TreeTranslator.java:245) at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1296)
Created attachment 139920 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=203767
Created attachment 142328 [details] stacktrace Saving a file.
Created attachment 142952 [details] stacktrace <Forne?a uma descri??o do problema ou as etapas a serem reproduzidas>.
Created attachment 145056 [details] stacktrace Doing a large git merge on the command-line
Created attachment 146563 [details] stacktrace Deleting code
Created attachment 146564 [details] stacktrace Fixing imports
Created attachment 146574 [details] stacktrace recreate java file externally. File has non compilable code
Created attachment 147155 [details] stacktrace opened java file with compiler error
Created attachment 148946 [details] stacktrace Saving a java class file
Created attachment 153067 [details] stacktrace Saved a uncompilable enum
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=203767
Do you have a reproducible test case?
Created attachment 153086 [details] stacktrace Editing an invalid enum
(In reply to Dusan Balek from comment #13) > Do you have a reproducible test case? Yes, I tried it again today and finally reproduced it as follow: public enum SampleEnum { VALUE_1("1", VALUE_2), VALUE_2("2", VALUE_1); private final String value; private final SampleEnum e; private SampleEnum(final String value) { this.value = value; this.e = sampleEnum; } public abstract SampleEnum getSampleEnum() public String getValue() { return value; } } I hope it helps. The issue happened after I removed "final SampleEnum sampleEnum" as constructor parameter.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/bcaa68246bf8 http://hg.netbeans.org/nb-javac/rev/adb99a8dd2fb
The second link I believe should be: http://hg.netbeans.org/main/nb-javac/rev/adb99a8dd2fb
Integrated into 'main-silver', will be available in build *201504230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/bcaa68246bf8 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #235791: NullPointerException at com.sun.tools.javac.comp.Lower.visitApply - fixed.