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.Lower.visitApply | ||
---|---|---|---|
Product: | java | Reporter: | tomzi <tomzi> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bondolo, cezariusz, egeek, FrantaM, helderneres, hmichel, javydreamercsw, Leperous, lhochet, misterm, nvamelichev, pepijn, petrk, tboudreau, terje7601, vv159170, zdenek.rod |
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 203767 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
tomzi
2013-09-11 08:59:57 UTC
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. |