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.visitIdent | ||
---|---|---|---|
Product: | java | Reporter: | theshadow27 <theshadow27> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | theshadow27 |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 216944 |
Attachments: |
stacktrace
stacktrace stacktrace testcase project Bug252033: mvn project |
Description
theshadow27
2015-04-23 18:05:23 UTC
Created attachment 153335 [details]
stacktrace
Created attachment 153336 [details]
stacktrace
Trying to duplicate problem... still unsure
Created attachment 153337 [details]
stacktrace
Still trying to duplicate repeatibly. The issues seems to be consistantly triggered when typing a space between 'class' and 'extends'
public class[SPACE HERE]extends AbstractSomethingClass {..}
The AbstractSomethingClass was in a Maven dependancy that I removed. I went to delete the "extends AbstractSomethingClass" part, but accidentially deleted the "public class ConcreteSomethingClass" part instead. In typing it back (without removing "extends") I got this exception.
Without saving this particular file, it seems to be 100% reproduceable. But when I copy the same source to my sandbox (Issuzilla testcase) project, I can't duplicate the exception. I will continue to try to get a good test case for this...
Created attachment 153366 [details] testcase project Bug252033: mvn project The zipped maven project has 2 files, one .java and the .pom. The test case depends on you removing the dependency from the POM and saving. Then you delete the class name ('Main') from the class. This triggers the NPE every time. Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/487a2aa1c1be http://hg.netbeans.org/main/nb-javac/rev/1fb3d9580e7c Integrated into 'main-silver', will be available in build *201504290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/487a2aa1c1be User: Dusan Balek <dbalek@netbeans.org> Log: Issues #251886, #252026, and #252033 - fixed. Confirmed fix in 201504290001 - thanks |