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 270308 - NullPointerException at com.sun.tools.javac.comp.Annotate.getAnnotationArrayValue
Summary: NullPointerException at com.sun.tools.javac.comp.Annotate.getAnnotationArrayV...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-05 13:34 UTC by opensolutions
Modified: 2017-09-24 02:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 228679


Attachments
stacktrace (2.46 KB, text/plain)
2017-04-05 13:34 UTC, opensolutions
Details
stacktrace (3.50 KB, text/plain)
2017-06-13 17:10 UTC, J Bachorik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description opensolutions 2017-04-05 13:34:29 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.112-b16, Java(TM) SE Runtime Environment, 1.8.0_112-b16
OS: Mac OS X

User Comments:
opensolutions: adding a new default array to an annotytion

SubViewEntry[] subviews() default new SubViewEntry[0];

NetBeans hang after that




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Annotate.getAnnotationArrayValue(Annotate.java:661)
   at com.sun.tools.javac.comp.Annotate.attributeAnnotationValue(Annotate.java:541)
   at com.sun.tools.javac.comp.Annotate.enterDefaultValue(Annotate.java:325)
   at com.sun.tools.javac.comp.Annotate.access$500(Annotate.java:68)
   at com.sun.tools.javac.comp.Annotate$3.run(Annotate.java:288)
   at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:173)
Comment 1 opensolutions 2017-04-05 13:34:32 UTC
Created attachment 164034 [details]
stacktrace
Comment 2 J Bachorik 2017-06-13 17:10:17 UTC
Created attachment 164529 [details]
stacktrace

Writing an annotation processor class
Comment 4 Quality Engineering 2017-09-24 02:38:40 UTC
Integrated into 'main-silver', will be available in build *201709240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/19d2c69d935e
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #256966, #270308, and #271310 fixed.