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 254042 - AssertionError: Unexpected tree: ()->c with kind: LAMBDA_EXPRESSION within: ()->c with kind: LAMBDA_EXPRESSION
Summary: AssertionError: Unexpected tree: ()->c with kind: LAMBDA_EXPRESSION within: (...
Status: RESOLVED WORKSFORME
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: 2015-07-31 20:21 UTC by everflux
Modified: 2015-08-03 16:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218900


Attachments
stacktrace (3.29 KB, text/plain)
2015-07-31 20:21 UTC, everflux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2015-07-31 20:21:22 UTC
This bug was originally marked as duplicate of bug 242108, 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 Beta (Build 201507282201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Linux

User Comments:
everflux: invoked code completion on lamda




Stacktrace: 
java.lang.AssertionError: Unexpected tree: ()->c with kind: LAMBDA_EXPRESSION within: ()->c with kind: LAMBDA_EXPRESSION
   at com.sun.tools.javac.util.Assert.error(Assert.java:133)
   at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.validateAnnotatedType(Attr.java:4883)
   at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitVarDef(Attr.java:4723)
   at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:858)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
Comment 1 everflux 2015-07-31 20:21:24 UTC
Created attachment 155101 [details]
stacktrace
Comment 2 Dusan Balek 2015-08-03 09:57:39 UTC
Hard to fix without a reproducible test case. Are you able to reproduce the issue on your sources? If so, could you please create a simple test case and attach it to the issue? Thanks.
Comment 3 everflux 2015-08-03 16:36:16 UTC
I have tested it with the latest beta (Product Version: NetBeans IDE 8.1 Beta (Build 201508011000) ) and I could not reproduce the issue. The only difference is that I used an existing file instead of creating it from scratch.