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 238833

Summary: StackOverflowError at com.sun.tools.javac.util.Log.shouldReport
Product: java Reporter: Jan Lahoda <jlahoda>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 205587
Attachments: stacktrace

Description Jan Lahoda 2013-11-26 15:07:18 UTC
Build: NetBeans IDE Dev (Build 20131112-8b949209d535)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: Linux

User Comments:
jlahoda: public class TestX {
private void test() {
Map<String, List<String>> m = new HashMap<>();

m.computeIfAbsent("a", _ -> new ArrayList<>());
}
}




Stacktrace: 
java.lang.StackOverflowError
   at com.sun.tools.javac.util.Log.shouldReport(Log.java:490)
   at com.sun.tools.javac.util.Log$DefaultDiagnosticHandler.report(Log.java:663)
   at com.sun.tools.javac.util.Log.report(Log.java:624)
   at com.sun.tools.javac.util.AbstractLog.error(AbstractLog.java:107)
   at com.sun.tools.javac.parser.JavacParser.error(JavacParser.java:4020)
   at com.sun.tools.javac.parser.JavacParser.reportSyntaxError(JavacParser.java:456)
Comment 1 Jan Lahoda 2013-11-26 15:07:21 UTC
Created attachment 142605 [details]
stacktrace
Comment 2 Jan Lahoda 2013-11-26 15:09:18 UTC
*** Bug 238832 has been marked as a duplicate of this bug. ***
Comment 3 Martin Balin 2016-07-07 07:19:06 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