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.
After some 'common' actions like Open source, Save source etc. is thrown exception: java.lang.NegativeArraySizeException at java.util.ArrayList.<init>(ArrayList.java:135) at org.netbeans.modules.java.JavaNode$StateUpdater.run(JavaNode.java:776) at org.openide.util.Task.run(Task.java:207) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:419) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:794)
It looks it is impossible to synchronize WeakSet properly.
WeakSet replaced with HashMap. It is not necessary to use weak references here and it looks it is impossible to synchronize WeakSet properly since GC accesses the set out of our control. Fixed in /cvs/java/src/org/netbeans/modules/java/JavaNode.java,v <-- JavaNode.java new revision: 1.130; previous revision: 1.129
verified