[CONTROLLER-1121] Config tests fail with JDK-8 Created: 22/Jan/15  Updated: 12/Feb/15  Resolved: 12/Feb/15

Status: Resolved
Project: controller
Component/s: config
Affects Version/s: Post-Helium
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks RELENG-5 Milestone: Java 8 compatibility Resolved
External issue ID: 2627
Priority: High

 Description   

Attempting to build controller with jdk-8 results in a test failure:

Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.285 sec <<< FAILURE! - in org.opendaylight.controller.config.yangjmxgenerator.ModuleMXBeanEntryTest
testThreadsJava(org.opendaylight.controller.config.yangjmxgenerator.ModuleMXBeanEntryTest) Time elapsed: 0.089 sec <<< FAILURE!
java.lang.AssertionError: expected:<4> but was:<1>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.opendaylight.controller.config.yangjmxgenerator.ModuleMXBeanEntryTest.testThreadsJava(ModuleMXBeanEntryTest.java:257)



 Comments   
Comment by Robert Varga [ 10/Feb/15 ]

https://git.opendaylight.org/gerrit/15103

Comment by Robert Varga [ 12/Feb/15 ]

There are still problems remaining:

Failed tests:
AnnotationsTest.testFindAnnotation_SubClassOfSuperClassWithInterface:235->assertDescription:71 expected:<descr[]> but was:<descr[
descr]>
InterfacesHelperTest.testGetMXInterfaces:86 expected:<[interface org.opendaylight.controller.config.manager.impl.util.InterfacesHelperTest$SubA, interface org.opendaylight.controller.config.manager.impl.util.InterfacesHelperTest$SuperBMXBean]> but was:<[]>

Tests run: 88, Failures: 2, Errors: 0, Skipped: 0

These seem to be related to class layout changes in Java 8, so some surgery to the production code is required.

Comment by Robert Varga [ 12/Feb/15 ]

https://git.opendaylight.org/gerrit/15192
https://git.opendaylight.org/gerrit/15193

Generated at Wed Feb 07 19:54:44 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.