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.

Bug 34162 - AIOOBE from SplitContainerImpl.componentRemoved when switching between projects
Summary: AIOOBE from SplitContainerImpl.componentRemoved when switching between projects
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2003-06-04 17:13 UTC by moshiX
Modified: 2008-12-23 09:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The thrown exception (4.63 KB, text/plain)
2003-06-04 17:18 UTC, moshiX
Details

Note You need to log in before you can comment on or make changes to this bug.
Description moshiX 2003-06-04 17:13:56 UTC
report for NB3.5RC3.

The attached exception is thrown when switching
between projects:

Moshe
Comment 1 moshiX 2003-06-04 17:18:10 UTC
Created attachment 10591 [details]
The thrown exception
Comment 2 Vitezslav Stejskal 2003-06-05 08:55:49 UTC
It seems like some problem in core/winsys, reassigning.
Comment 3 mslama 2003-06-06 14:29:50 UTC
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?
Comment 4 mslama 2003-06-06 16:48:30 UTC
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.
Comment 5 Marian Mirilovic 2003-11-26 12:56:41 UTC
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.
Comment 6 Marian Mirilovic 2004-02-27 14:13:06 UTC
issue doesn't apply to new window system - verified