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.
report for NB3.5RC3. The attached exception is thrown when switching between projects: Moshe
Created attachment 10591 [details] The thrown exception
It seems like some problem in core/winsys, reassigning.
It seems there is inconsistency in winsys data. In this case constraints has size 1 but TopComponent array is empty - it should have also size 1. I will check synchronization. Is there any hint how to reproduce it? What JDK do you use?
I tried to reproduce with NB 3.5 on Solaris, JDK 1.4.2_b25 but no success. I checked source: Problem is that at that line size of tcs array and constraints map should be the same. It means that if (constraints.size == 1) tcs.length must not be 0. But according to exception it is. I did not find any way how this could happen because all adding/removing from topComponents and constraints is done under components lock (ie. it is synchronized so there should be no race condition). I could simply change condition from (constraints.size == 1) to (tcs.length == 1) to avoid exception but it does not fix original cause. I will test with current dev build and if I will not be able to reproduce it I will leave it. If there will be another report like this I will change condition.
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.
issue doesn't apply to new window system - verified