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.
build 200206260100, JDK1.4fcs, MDI. 1. Start IDE from a brand new user directory 2. Do *not* close the welcome screen. 3. Open ClockFrame example (in editing mode). 4. Start debugger (F7) on it. 5. You are switched to Debugging workspace. The welcome screen undocked outside the MDI frame (!!!) (this happens at least sometimes). 6. Close the editor, and if the welcome screen is undocked, close it too. 7. Switch back to editing workspace. The welcome screen is always open (even in case it was in step 5 docked in editor, and you close the editor). 8. Open the ClockFrame (in editing mode) again. 9. Stop the debugger. 10. Start it again (F7). 11. Two ArrayIndexOutOfBoundsException exceptions occur (attached is whole IDE log). I reproduced it also with not new userdir, and it seems to be (at least partialy) related to welcome screen.
Created attachment 6474 [details] The IDE log (contains the exceptions).
It seems it's either a race condition (JTabbedPane#getSelectedIndex and remove method shouldn't produce AIIOOBE in single thread model) or a bug in JTabbedPane. The first seems to be the case. Will investigate.
I reproduced it on jdk1.4.0, but not on jdk1.4.1.
Well it was only once I reproduced it, so I can't figure out the problem. Anyway also some strange effect saw once, also the closed ClockFrame when switched back to Editing was shown as a tab but the component was not visible. All on jdk1.4.0.
Can't reprocuce (only the one occurence) -> decreasing the priority. Please let me know if you are able reproduce it on your machine, I'd like to debug there in that case.
Now the welcome window doesn't act that way anymore (Marek fixed those problems with it). Closing this as worksforme, the issue could be related to the welcome window problems.
Resolved for 3.4.x or earlier, no new info since then -> verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.