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.

Bug 213253 - NullPointerException at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitNewClass
Summary: NullPointerException at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitNewClass
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 227743 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-30 18:09 UTC by jgish
Modified: 2013-06-18 14:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 188660


Attachments
stacktrace (5.14 KB, text/plain)
2012-05-30 18:09 UTC, jgish
Details
stacktrace (3.06 KB, text/plain)
2013-05-19 08:23 UTC, _ tboudreau
Details
stacktrace (12.88 KB, text/plain)
2013-05-22 10:32 UTC, Exceptions Reporter
Details
stacktrace (4.20 KB, text/plain)
2013-06-07 21:34 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jgish 2012-05-30 18:09:19 UTC
Build: NetBeans IDE Dev (Build jdk8lambda-1507-on-20120502)
VM: OpenJDK Client VM, 24.0-b07, OpenJDK Runtime Environment, 1.8.0-internal-jgish_2012_05_25_17_27-b00
OS: Linux

User Comments:
jgish: had just returned from building lambda jdk in a shell.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitNewClass(Flow.java:869)
   at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1451)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitThrow(Flow.java:841)
   at com.sun.tools.javac.tree.JCTree$JCThrow.accept(JCTree.java:1342)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
Comment 1 jgish 2012-05-30 18:09:24 UTC
Created attachment 120081 [details]
stacktrace
Comment 2 Dusan Balek 2013-03-29 11:40:09 UTC
*** Bug 227743 has been marked as a duplicate of this bug. ***
Comment 3 _ tboudreau 2013-05-19 08:23:02 UTC
Created attachment 134600 [details]
stacktrace

Changed == to !=
Comment 4 Exceptions Reporter 2013-05-19 08:23:07 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=188660
Comment 5 Exceptions Reporter 2013-05-22 10:32:13 UTC
Created attachment 134730 [details]
stacktrace

Editing a class many errors.
Starting to correct the errors from the top of the file.

When correcting the first error, it updates the file removing the error badges.
When correcting the second one, it throws this exception.
Comment 6 Jesse Glick 2013-06-07 21:34:31 UTC
Created attachment 135527 [details]
stacktrace

Added an abstract method to a superclass, then was implementing in some anonymous inner classes.
Comment 8 Quality Engineering 2013-06-18 14:49:59 UTC
Integrated into 'main-golden', will be available in build *201306181109* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8a67e47e6ca6
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #213253, #227001, and #229406 fixed.