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 271114

Summary: NullPointerException at com.sun.tools.javac.comp.Attr.visitVarDef
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 229743
Attachments: stacktrace

Description Exceptions Reporter 2017-07-18 05:38:05 UTC
This bug was originally marked as duplicate of bug 113518, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201706040001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13
OS: Mac OS X

User Comments:
GUEST: Error appear when i try to put (final) as cast in java .




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1171)
   at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:956)
   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:658)
   at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:735)
   at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:759)
   at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2558)
Comment 1 Exceptions Reporter 2017-07-18 05:38:07 UTC
Created attachment 164783 [details]
stacktrace