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 247781

Summary: UnsupportedOperationException at java.util.AbstractCollection.add
Product: java Reporter: Jesse Glick <jglick>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: akobberup, jglick
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 212537
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description Jesse Glick 2014-10-07 19:57:16 UTC
Build: NetBeans IDE Dev (Build 20141006-4ea7f3351b6c)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01
OS: Linux

User Comments:
jglick: Resolving conflicts from git-cherry-pick.




Stacktrace: 
java.lang.UnsupportedOperationException
   at java.util.AbstractCollection.add(AbstractCollection.java:260)
   at org.netbeans.modules.java.source.parsing.CompilationInfoImpl$DiagnosticListenerImpl.report(CompilationInfoImpl.java:529)
   at com.sun.tools.javac.util.Log.writeDiagnostic(Log.java:696)
   at com.sun.tools.javac.util.Log$DefaultDiagnosticHandler.report(Log.java:680)
   at com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.reportDeferredDiagnostics(Log.java:175)
   at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.showDiagnostics(JavacProcessingEnvironment.java:1074)
Comment 1 Jesse Glick 2014-10-07 19:57:18 UTC
Created attachment 149775 [details]
stacktrace
Comment 2 Jesse Glick 2014-10-09 22:09:23 UTC
Created attachment 149822 [details]
stacktrace

Switched branch and was trying to browse sources.
Comment 3 Jesse Glick 2014-10-16 15:46:24 UTC
Created attachment 149945 [details]
stacktrace

Resolving merge conflicts.
Comment 4 akobberup 2014-11-03 09:36:32 UTC
Created attachment 150227 [details]
stacktrace

Typing in a new method in an interface..
Comment 5 akobberup 2014-11-03 10:24:32 UTC
Created attachment 150228 [details]
stacktrace

Using code completion while typing in an import
Comment 6 Exceptions Reporter 2014-11-03 10:24:35 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=212537