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.
Usage of "Show All Errors/Show Failures" button breaks Junit results window, and throws AE's and AIOOBE's: java.lang.AssertionError at org.netbeans.modules.junit.output.TestsuiteNode.<init>(TestsuiteNode.java:69) at org.netbeans.modules.junit.output.TestsuiteNode.<init>(TestsuiteNode.java:50) at org.netbeans.modules.junit.output.RootNodeChildren.createNode(RootNodeChildren.java:254) ... ============= java.lang.ArrayIndexOutOfBoundsException: 0 at org.netbeans.modules.junit.output.RootNodeChildren.removePassedSuites(RootNodeChildren.java:293) at org.netbeans.modules.junit.output.RootNodeChildren.setFiltered(RootNodeChildren.java:275) at org.netbeans.modules.junit.output.RootNode.setFiltered(RootNode.java:150) at org.netbeans.modules.junit.output.ResultPanelTree.setFiltered(ResultPanelTree.java:240) at org.netbeans.modules.junit.output.ResultPanelTree.itemStateChanged(ResultPanelTree.java:145) ... (whole stack trace attached) Steps to reproduce: ------------------- 1) Open a j2se project with both passing and failing tests 2) Test whole project (alt-F6) 3) Use Show All Errors/Show Failures button two times ==> AE, AIOOBE, no results shown from then on ------------- NetBeans IDE Dev (Build 200607171800) 1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b90 Linux version 2.6.12-1.1390_FC4smp running on i386 en_US (nb); UTF-8
Created attachment 31948 [details] AE and AIOOBE stack trace
This is probably caused by fix of issue 73541.
Confirmed, accepted.
Fixed in the trunk. It was caused by a trivial bug - see the diff. Modified file: junit/src/org/netbeans/modules/junit/output/TestsuiteNode.java (1.5) Diff: http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/TestsuiteNode.java?r1=1.4&r2=1.5&diff_format=u
Verified in a custom build. ------- NetBeans IDE Dev (Build 060718) 1.5.0_05; Java HotSpot(TM) Server VM 1.5.0_05-b05 Linux version 2.6.12-1.1390_FC4smp running on i386 en_US (nb); UTF-8
This (trivial) bug was introduced with changes made to fix bug #73541 ("Assertion for some types of XML output").
Marking as 5.5_candidate, along with issue 73541.
The patch for r5.5, resolving issue 73541 will be applied w/o the buggy section, so this one would not be needed. Removing 5.5_candidate SW.