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.
[dev-200503172015, JDK 1.5.0_02] I was running java projects and was playing with input field (the application didn't request any input) - closing the input, entering values etc. During one project execution, after hitting F6 I got ArrayIndexOutOfBoundsException. Not reproducible.
stack-trace?
Created attachment 20942 [details] exc stack trace
Sorry, but I got finally pist off enough to start finding out why those MIME types are ordered as they are when you want to attach attachment so I almost forgot about the attachment :-) See http://www.netbeans.org/issues/show_bug.cgi?id=56117
4.1, there's a strange trick with overriding doLayout() in CloseButtonTabbedPane. If the tab is being removed, the super.doLayout() call is invokedLater(). That's where the data structure race condition emerges. Tim, what was the reason for the doLayout() override? it looks like hack to me. if the problem is that the tab component is removed in awtlistener, then it would be better to invokelater the whole removal of the tab?
were you closing some tabs right before the exception appeared?
fixed in trunk. commit -m "#56628 removed the recheduling of doLayout() and replaced it by reflection call on windowsL&F that will reset the rollovertab when removing one." src/org/netbeans/core/output2/ui/AbstractOutputWindow.java src/org/netbeans/core/output2/ui/CloseButtonTabbedPane.java Checking in src/org/netbeans/core/output2/ui/AbstractOutputWindow.java; /cvs/core/output2/src/org/netbeans/core/output2/ui/AbstractOutputWindow.java,v <-- AbstractOutputWindow.java new revision: 1.11; previous revision: 1.10 done Checking in src/org/netbeans/core/output2/ui/CloseButtonTabbedPane.java; /cvs/core/output2/src/org/netbeans/core/output2/ui/CloseButtonTabbedPane.java,v <-- CloseButtonTabbedPane.java new revision: 1.8; previous revision: 1.7
Not able to reproduce in dev-200507061800.