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 244936

Summary: NullPointerException at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitNewClass
Product: java Reporter: Revivius
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 210144
Attachments: stacktrace

Description Revivius 2014-06-07 15:40:52 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 7

User Comments:
revivius: Ctrl clicked to navigate to class

revivius: Alt + enter to import a class




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitNewClass(Attr.java:4667)
   at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1516)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitVarDef(Attr.java:4648)
   at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:852)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
Comment 1 Revivius 2014-06-07 15:40:54 UTC
Created attachment 147604 [details]
stacktrace
Comment 2 Revivius 2014-06-07 15:52:57 UTC
I am not sure if NB user/cache directories are relevant but deleting them did not help. I keep getting same exception at the time i open project with fresh user directory.
Comment 3 Martin Balin 2016-07-07 07:19:07 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss