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 221577 - NullPointerException at com.sun.tools.javac.comp.Check$CycleChecker.checkClass
Summary: NullPointerException at com.sun.tools.javac.comp.Check$CycleChecker.checkClass
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 226674 226676 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-06 17:14 UTC by Tomas Stupka
Modified: 2013-06-02 01:10 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 188613


Attachments
stacktrace (4.99 KB, text/plain)
2012-11-06 17:14 UTC, Tomas Stupka
Details
stacktrace (6.21 KB, text/plain)
2012-12-12 16:08 UTC, Alexander Simon
Details
stacktrace (5.00 KB, text/plain)
2012-12-12 17:17 UTC, Alexander Simon
Details
stacktrace (5.02 KB, text/plain)
2013-02-25 17:41 UTC, theshadow27
Details
stacktrace (5.02 KB, text/plain)
2013-02-25 17:50 UTC, theshadow27
Details
stacktrace (5.02 KB, text/plain)
2013-02-25 17:53 UTC, theshadow27
Details
Testcase (1.19 KB, application/octet-stream)
2013-02-25 18:15 UTC, theshadow27
Details
Testcase Messages (53.66 KB, application/octet-stream)
2013-02-25 18:16 UTC, theshadow27
Details
Testcase UI Gestures (133.27 KB, application/octet-stream)
2013-02-25 18:18 UTC, theshadow27
Details
stacktrace (5.64 KB, text/plain)
2013-05-18 06:46 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Stupka 2012-11-06 17:14:52 UTC
Build: NetBeans IDE Dev (Build 20121105-cb6dd0e99e63)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.12-b01-434, Java(TM) SE Runtime Environment, 1.6.0_37-b06-434-11M3909
OS: Mac OS X

User Comments:
aschild: Copy paste code

aschild: Another copy paste

aschild: Copy paste inner class method

aschild: Duplicate inner class

aschild: Copy/Paste in class




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Check$CycleChecker.checkClass(Check.java:1938)
   at com.sun.tools.javac.comp.Check$CycleChecker.visitClassDef(Check.java:1934)
   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:593)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   at com.sun.tools.javac.comp.Check$CycleChecker.checkSymbol(Check.java:1888)
   at com.sun.tools.javac.comp.Check$CycleChecker.visitIdent(Check.java:1910)
Comment 1 Tomas Stupka 2012-11-06 17:14:55 UTC
Created attachment 127243 [details]
stacktrace
Comment 2 Alexander Simon 2012-12-12 16:08:08 UTC
Created attachment 129282 [details]
stacktrace
Comment 3 Alexander Simon 2012-12-12 17:17:09 UTC
Created attachment 129285 [details]
stacktrace
Comment 4 theshadow27 2013-02-25 17:41:10 UTC
Created attachment 131851 [details]
stacktrace

Closed the (same) file and opened it again. Related to Exception #660990
Comment 5 theshadow27 2013-02-25 17:44:56 UTC
*** Bug 226674 has been marked as a duplicate of this bug. ***
Comment 6 theshadow27 2013-02-25 17:50:10 UTC
Created attachment 131852 [details]
stacktrace

Commented out inner interface
Comment 7 theshadow27 2013-02-25 17:53:10 UTC
Created attachment 131853 [details]
stacktrace

Finally got parsing back, by commenting out inner interface. Will attemt to duplicate...
Comment 8 Exceptions Reporter 2013-02-25 17:53:15 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=188613
Comment 9 theshadow27 2013-02-25 18:15:37 UTC
Created attachment 131856 [details]
Testcase

Test case, different exception but in the same context. 1/3
Comment 10 theshadow27 2013-02-25 18:16:49 UTC
Created attachment 131857 [details]
Testcase Messages

messages.log, from test case from 201302202300. 2/3
Comment 11 theshadow27 2013-02-25 18:18:07 UTC
Created attachment 131858 [details]
Testcase UI Gestures

uigestures file, Test case from 201302202300. 3/3
Comment 12 theshadow27 2013-04-05 05:17:22 UTC
*** Bug 226676 has been marked as a duplicate of this bug. ***
Comment 13 _ tboudreau 2013-05-18 06:46:59 UTC
Created attachment 134584 [details]
stacktrace

Adding an inner class
Comment 15 Quality Engineering 2013-06-02 01:10:03 UTC
Integrated into 'main-golden', will be available in build *201306012301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4ee470edd776
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #221577, #230332, and #228138 fixed.