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 198075 - NullPointerException at com.sun.tools.javac.jvm.Gen.visitSwitch
Summary: NullPointerException at com.sun.tools.javac.jvm.Gen.visitSwitch
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-26 06:29 UTC by gjong
Modified: 2012-05-22 13:03 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174096


Attachments
stacktrace (3.78 KB, text/plain)
2011-04-26 06:29 UTC, gjong
Details
stacktrace (4.00 KB, text/plain)
2011-12-22 18:52 UTC, esmithbss
Details
stacktrace (3.87 KB, text/plain)
2011-12-22 18:58 UTC, esmithbss
Details
stacktrace (3.87 KB, text/plain)
2012-03-19 14:17 UTC, javacavaj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gjong 2011-04-26 06:29:19 UTC
Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows 7

User Comments:
gjong: Saving a Java file after modifying the extending list of an enum.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.jvm.Gen.visitSwitch(Gen.java:1148)
   at com.sun.tools.javac.tree.JCTree$JCSwitch.accept(JCTree.java:967)
   at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:687)
   at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:722)
   at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:708)
   at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:759)
Comment 1 gjong 2011-04-26 06:29:24 UTC
Created attachment 107936 [details]
stacktrace
Comment 2 Dusan Balek 2011-11-01 13:27:22 UTC
Hard to fix without a reproducible test case. Are you able to reproduce the
issue? If so, could you please create a simple test case and attach it to the
issue? Thanks.
Comment 3 esmithbss 2011-12-22 18:52:27 UTC
Created attachment 114416 [details]
stacktrace

Selecting a newly opened submodule from a set of modules.
Comment 4 Exceptions Reporter 2011-12-22 18:52:33 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=174096
Comment 5 esmithbss 2011-12-22 18:58:27 UTC
Created attachment 114417 [details]
stacktrace

Opening an existing class file where the class name contained within the file does not match the file name.
Comment 6 javacavaj 2012-03-19 14:17:16 UTC
Created attachment 116863 [details]
stacktrace