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.
Build: NetBeans IDE Dev (Build 201601210002) VM: Java HotSpot(TM) 64-Bit Server VM, 25.71-b15, Java(TM) SE Runtime Environment, 1.8.0_71-b15 OS: Windows 10 User Comments: gtzabari: Saved Java file. Exception thrown. Stacktrace: java.lang.AssertionError at com.sun.tools.javac.util.Assert.error(Assert.java:155) at com.sun.tools.javac.util.Assert.check(Assert.java:46) at com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:340) at com.sun.tools.javac.comp.ArgumentAttr$ArgumentType.complete(ArgumentAttr.java:361) at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:302) at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:289)
Created attachment 158304 [details] stacktrace
Created attachment 158438 [details] stacktrace AE when opening java file
Created attachment 158439 [details] stacktrace AE when invoking code completion in following file: /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package javaapplication32; import java.util.Set; import java.util.stream.IntStream; /** * * @author jprox */ public class NewClass { public void n() { Set<Integer> values = IntStream.range(1, 5).map(value -> { return 5; }. collect(Collectors.toSet()); } }
Created attachment 158617 [details] stacktrace editing source file
Created attachment 159584 [details] stacktrace edit Java source
Created attachment 159585 [details] stacktrace invoke autocompletion (ctrl+space)
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=222309
Created attachment 162060 [details] stacktrace Codecompletion
Created attachment 162061 [details] stacktrace Codecompletion while errors in lambda Collections.sort(list, (x, y) -> x.getGasRate().compareTo(y.getGasRate())) //Remark: getGasRate() is a double, which leads to this error
Created attachment 162792 [details] stacktrace Code completion
Created attachment 164360 [details] stacktrace worked on a vertx java project
Increased priority because this issue prevents Netbeans from interacting with classes that cannot be parsed.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/fcf7f2a2d07a http://hg.netbeans.org/main/nb-javac/rev/27bc3a018e4b
Integrated into 'main-silver', will be available in build *201706130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/fcf7f2a2d07a User: Dusan Balek <dbalek@netbeans.org> Log: Issue #257772 - AssertionError at com.sun.tools.javac.util.Assert.error - fixed.