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 252312 - NullPointerException at com.sun.tools.javac.comp.Check.checkNonCyclicElements
Summary: NullPointerException at com.sun.tools.javac.comp.Check.checkNonCyclicElements
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-08 20:46 UTC by _ tboudreau
Modified: 2016-08-27 02:20 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 217203


Attachments
stacktrace (2.15 KB, text/plain)
2015-05-08 20:46 UTC, _ tboudreau
Details
stacktrace (2.21 KB, text/plain)
2015-07-08 21:28 UTC, misterm
Details
stacktrace (2.17 KB, text/plain)
2015-07-10 09:05 UTC, Maksim Khramov
Details
A dump file NetBeans told me to attach (4.52 KB, application/octet-stream)
2015-08-26 07:33 UTC, terje7601
Details
stacktrace (2.18 KB, text/plain)
2015-08-26 07:38 UTC, terje7601
Details
stacktrace (2.16 KB, text/plain)
2015-08-26 07:41 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2015-05-08 20:46:36 UTC
Build: NetBeans IDE Dev (Build NetBeans-742-on-20150508)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Linux

User Comments:
tboudreau: Selecting text in the editor containing the following (invalid) class:

 */
public @interface Hint {
    p
    String key();
    String value();
}




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Check.checkNonCyclicElements(Check.java:3328)
   at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4583)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4462)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4390)
   at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4365)
   at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1317)
Comment 1 _ tboudreau 2015-05-08 20:46:38 UTC
Created attachment 153575 [details]
stacktrace
Comment 2 misterm 2015-07-08 21:28:55 UTC
Created attachment 154532 [details]
stacktrace

Typing
Comment 3 Maksim Khramov 2015-07-10 09:05:10 UTC
Created attachment 154555 [details]
stacktrace

Edit code and invoke code-complete  in java annotation class
Comment 4 terje7601 2015-08-26 07:33:45 UTC
Created attachment 155654 [details]
A dump file NetBeans told me to attach
Comment 5 Exceptions Reporter 2015-08-26 07:35:42 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=217203
Comment 6 terje7601 2015-08-26 07:38:42 UTC
Created attachment 155655 [details]
stacktrace

Eror occurs on every save now
Comment 7 terje7601 2015-08-26 07:41:42 UTC
Created attachment 155656 [details]
stacktrace

Eror occurs on every save now
Comment 8 terje7601 2015-08-26 07:47:06 UTC
To reproduce, create a new Java Annotation Type with the contents below. In this case, the problem is the missing "<" in "Class<?>".

public @interface Issue {
	
	Class?> group();
	
}
Comment 9 Exceptions Reporter 2015-10-09 14:37:06 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=217203
Comment 10 Exceptions Reporter 2016-08-07 01:37:32 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=217203
Comment 12 Quality Engineering 2016-08-27 02:20:09 UTC
Integrated into 'main-silver', will be available in build *201608270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/16f93951723e
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #252312 and #246512 fixed.