Please use the Apache issue tracking system for new NetBeans issues ( !!

Bug 242717

Summary: NullPointerException at$TypeAnnotationsValidator.visitNewClass
Product: java Reporter: frederic.gendebien
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED QA Contact: issues <>
Priority: P2 CC: adv, KevinAnderson, RichardTingle
Version: 8.0   
Target Milestone: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Report: 206745
Attachments: stacktrace
dump file

Description frederic.gendebien 2014-03-09 16:55:19 UTC
Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b69, Java(TM) SE Runtime Environment, 1.8.0-b127
OS: Mac OS X

User Comments:
GUEST: Filling in constructor args.

frederic.gendebien: I was creating an anonymous class of type Comparator and when I used completion to generate the body I received a NPE

GUEST: Was finding and replacing TreeSet with ArrayList. Error just popped up then. I can't see a major issue though.

GUEST: delete some java class, and open the java file which need dependent the deleted classes, error reported

Comment 1 frederic.gendebien 2014-03-09 16:55:22 UTC
Created attachment 145883 [details]
Comment 2 Exceptions Reporter 2014-08-21 16:04:54 UTC
This bug already has 10 duplicates 
Comment 3 Exceptions Reporter 2014-12-12 08:52:36 UTC
This bug already has 20 duplicates 
Comment 4 Dusan Balek 2015-02-09 09:44:55 UTC
Fixed in jet-main.
Comment 5 clinuxrulz 2015-07-19 23:22:50 UTC
Created attachment 154715 [details]
dump file

The code uses T_, T__, ... to simulate high order generics. That seems to be crashing netbeans parser, even though javac compiles it fine.
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo