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 268125 - NullPointerException at com.sun.tools.javac.comp.Attr.visitVarDef
Summary: NullPointerException at com.sun.tools.javac.comp.Attr.visitVarDef
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-20 23:19 UTC by matvei
Modified: 2016-09-20 23:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 226327


Attachments
stacktrace (3.91 KB, text/plain)
2016-09-20 23:19 UTC, matvei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matvei 2016-09-20 23:19:12 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 8.1 (Build 201510222201)
VM: Java HotSpot(TM) Client VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14
OS: Windows 10

User Comments:
matvei: Creating a generic Comparator.  Here's the code snippet, caret position indicated by "|":

    private static final Comparator<MinimumDetailsInfo> sorter = Comparator
            .comparing|(mdi -> mdi.getCategorySpeed());

As soon as I typed in "<>", the exception popped up.  If I do any other editing on that line of code, another identical exception is thrown by the IDE.  If I try to save the file, IDE deadlocks while maxing one of the CPU cores.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1054)
   at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:858)
   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:572)
   at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:641)
   at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:657)
   at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2452)
Comment 1 matvei 2016-09-20 23:19:15 UTC
Created attachment 162142 [details]
stacktrace