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 238321

Summary: Failing DependencyQueueTest tests
Product: platform Reporter: Jiri Skrivanek <jskrivanek>
Component: NetigsoAssignee: Jaroslav Tulach <jtulach>
Status: VERIFIED FIXED    
Severity: normal Keywords: JDK_8, JDK_SPECIFIC, TEST
Priority: P1    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jiri Skrivanek 2013-11-13 14:29:56 UTC
Please, fix failing DependencyQueueTest on JDK8 or remove it from stable test distribution in project.properties. To reproduce:

ant -f core.osgi test-unit -Dtest.includes=**/DependencyQueueTest.class

http://test4u.cz.oracle.com/job/StableBTD-trunk/lastCompletedBuild/testReport

junit.framework.AssertionFailedError: expected:<[0, 2, 1, 3]> but was:<[0, 3, 2, 1]>
	at junit.framework.Assert.fail(Assert.java:50)
	at junit.framework.Assert.failNotEquals(Assert.java:287)
	at junit.framework.Assert.assertEquals(Assert.java:67)
	at junit.framework.Assert.assertEquals(Assert.java:74)
	at org.netbeans.core.osgi.DependencyQueueTest.testOffer(DependencyQueueTest.java:82)

java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b115)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b57, mixed mode)
Comment 1 Jaroslav Tulach 2013-11-18 11:57:52 UTC
Probably related to switch to new Felix.
Comment 2 Jaroslav Tulach 2013-11-18 13:41:48 UTC
ergonomics#1089b37fa1a4 - related to change in String.hashCode() in JDK8.
Comment 3 Quality Engineering 2013-11-21 02:43:32 UTC
Integrated into 'main-silver', will be available in build *201311210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1089b37fa1a4
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #238321: More stability to the test by using LinkedHashMap