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.
NetBeans IDE Dev (Build 061030) 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b100 Windows XP version 5.1 running on x86 en_US (nb); Cp1252 AssertionError during editing code (J2se project, no additional libraries). Sorry, no steps to reproduce. java.lang.AssertionError: Filling jar:file:/E:/Java/jdk1.6.0.b100/jre/lib/rt.jar!/java/lang/UnsupportedOperationException.class during jar:file:/E:/Java/jdk1.6.0.b100/jre/lib/rt.jar!/sun/awt/windows/WPrinterJob.class at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1820) at org.netbeans.modules.java.source.usages.SymbolClassReader.fillInImpl(SymbolClassReader.java:154) at org.netbeans.modules.java.source.usages.SymbolClassReader.fillIn(SymbolClassReader.java:133) at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1762)
Created attachment 35624 [details] assertion
Tomas, any idea?
Someone caches non completed symbols and completes them outside CancellableTask.run(). As far as I know code completion does this. Honza has a task to wrap the elements by proxy which invalidates the elements outside the run method.
Adding Dusan to cc since code completion is probably involved. Jirko, didn't you call code completion or life template?
The exact case is: 1) Someone (A) takes an element either from (runUAT(shared), runModificationTask, scheduled task). 2) A leaves critical section (run method) 3) JS schedules scheduled task (B) 4) A completes some symbol 5) In the same task B tries to complete symbol
AFAIK Dusan rewrote the code completion in such a way that this problem should not happen (at least not because of the code completion). Not anymore sure if the wrappers are (reasonably) doable at all, and not sure if there will be time for them. I propose to make this issue P4/future for now.
later.
NetBeans.org Migration: changing resolution from LATER to WONTFIX