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.
[nb_dev](20021016), [jdk1.4.0] It is unreproducible, it happens after attempt to close one editor tab.
Created attachment 7694 [details] IllegalArgumentException stack trace
I have changed version from 4.0 dev to S1S 4.2 (Nevada).
*** Issue 33998 has been marked as a duplicate of this issue. ***
Perfectly reproducible using NetBeans 3.5, see issue 33998: P2, because: "critical usability problem" No nbdiscuss thread would contain 33 messages because (in the core source) of this bug, if it wasn't that bad. ------- Additional Comments From Riyad Kalla 2003-05-28 20:55 PDT ------- When lots of files are open (about 15) then I click the 'X' in the top right of the editor window to close them ALL. Occasionally 1 file won't close and will throw a IllegalArgumentException with the following stack trace: ---------------------------- java.lang.IllegalArgumentException: Cannot set student [Up- to-date; 1.1.1.1] as selected. It's not present in the container. at org.netbeans.core.windows.frames.DefaultContainerImpl.setSe lectedTopComponent(DefaultContainerImpl.java:923) [catch] at org.netbeans.core.windows.frames.TabHandlePopupListener$1.r un(TabHandlePopupListener.java:112) at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent (EventQueue.java:448) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:136) at java.awt.EventDispatchThread.run (EventDispatchThread.java:99) ---------------------------- And the tab will not disappear but the window is empty (i.e. the file contents are not being shown). The problem here is that you not cannot open the file that had BEEN in that tab, or else it will cause an index array out of bounds exception > 1 I think it is. This exception was thrown the first 3 times I tried to open the file, now it doesn't seem to be thrown naymore when I try and OPEN the file. However attempting to close the tab by right clicking will ALWAYS throw the exception. Closing the X in the top right of the editors doesn't do anything either. And pressing CTRL-F4 when the tab is focused doesn't do anything. I will attach my log file.
Because Window System v1 will not be supported from now by our team, all old winsys issues (now "core/window system v1" issues) are going to be closed as WONTFIX. Changes in API which emerged both from UI spec and problems with adjusting to the older API are described in the document http://core.netbeans.org/windowsystem/changes.html. It shows also recommends how the client code should be adjusted to the new window system. If you think this issue apply also to the new winsys then change the subcomponent (to "core/window system") and REOPEN it.
verified