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 45096 - error in testNodesAreReferenced
Summary: error in testNodesAreReferenced
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 4.x
Hardware: PC Solaris
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2004-06-17 14:17 UTC by pzajac
Modified: 2008-12-22 19:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stacktrace (1.22 KB, text/plain)
2004-06-17 14:18 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2004-06-17 14:17:53 UTC
[200406161800]

Test Suite org.openide.explorer.view.NodeListModelTest

testNodesAreReferenced:

      java.lang.ArrayIndexOutOfBoundsException: 0
	at
org.openide.explorer.view.NodeListModelTest.testNodesAreReferenced(NodeListModelTest.java:61)
	at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at
junit.framework.TestCase.runTest(TestCase.java:154)
Comment 1 pzajac 2004-06-17 14:18:49 UTC
Created attachment 15812 [details]
exception stacktrace
Comment 2 Petr Nejedly 2004-06-21 16:27:06 UTC
Cannot reproduce. The test passes for me constantly.
Maybe some strange timing problem?
Comment 3 pzajac 2004-06-22 06:49:37 UTC
[200406211800]
the test fails again on solaris. 
 java.lang.ArrayIndexOutOfBoundsException: 0
	at
org.openide.explorer.view.NodeListModelTest.testNodesAreReferenced(NodeListModelTest.java:61)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
....
Comment 4 Jaroslav Tulach 2004-07-26 14:13:48 UTC
cvs ci -m "#45096: The test needs to run in AWT thread as it replans
all operations into it. Outside of AWT it cannot be reliable"
test/unit/src/org/openide/explorer/view/NodeListModelTest.java
Checking in
test/unit/src/org/openide/explorer/view/NodeListModelTest.java;
/cvs/openide/test/unit/src/org/openide/explorer/view/NodeListModelTest.java,v
 <--  NodeListModelTest.java
new revision: 1.5
Comment 5 pzajac 2004-08-10 10:13:54 UTC
v