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 17892 - ArrayIndexOutOfBoundsException in FolderOrder
Summary: ArrayIndexOutOfBoundsException in FolderOrder
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: phamernik
URL:
Keywords:
: 18272 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-11-20 14:40 UTC by Martin Entlicher
Modified: 2008-12-22 22:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The exception thrown. (2.22 KB, text/plain)
2001-11-20 14:42 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2001-11-20 14:40:33 UTC
Not sure if it's reproducible. Happend after restart of the IDE, have 3 Generic
CVS filesystems and one local directory mounted.
Build #200111200100.
Exception attached.
Comment 1 Martin Entlicher 2001-11-20 14:42:03 UTC
Created attachment 3497 [details]
The exception thrown.
Comment 2 Jesse Glick 2001-11-26 11:23:42 UTC
FO.write should probably make a clone of 'order' before using it. Or
synchronize access to it. Looks like a race condition.
Comment 3 Jan Chalupa 2001-11-27 13:03:55 UTC
Target milestone -> 3.3.1.
Comment 4 Jan Zajicek 2001-12-03 11:23:20 UTC
*** Issue 18272 has been marked as a duplicate of this issue. ***
Comment 5 rmatous 2001-12-11 10:49:19 UTC
I evaluated this bug. There seems to be problem in synchronization 
between methods setOrder and findFor (both use different lock for 
synchronization - because findFor is static). Suggested patch:

Index: FolderOrder.java
===================================================================
RCS file: /cvs/openide/src/org/openide/loaders/FolderOrder.java,v
retrieving revision 1.7
diff -r1.7 FolderOrder.java
405,407c405,408
<         order.read ();
<         
<         return order;
---
>         synchronized (order) {
>             order.read ();
>             return order;            
>         }        

Comment 6 rmatous 2001-12-11 12:46:35 UTC
Fixed in release33 (FolderOrder 1.7.14.1). Synchronization was 
changed in method findFor.
Comment 7 Quality Engineering 2003-07-01 15:59:23 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 8 Quality Engineering 2003-07-01 16:33:11 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.