TestResolvedJavaType.getModifersTest fails on a class nested in an interface.
The class that fails is org.junit.Test.None a class that is nested in an Interface.
The class file sversion number is 49, so the ACC_IDENTITY bit should be set by the VM for the inner class.
STDERR:
JavaTest Message: JUnit Failure: getModifiersTest(jdk.vm.ci.runtime.test.TestResolvedJavaType): HotSpotType<Lorg/junit/Test$None;, resolved>: 0x0 != 0x20 expected:<0> but was:<32>
java.lang.AssertionError: HotSpotType<Lorg/junit/Test$None;, resolved>: 0x0 != 0x20 expected:<0> but was:<32>
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failNotEquals(Assert.java:835)
at org.junit.Assert.assertEquals(Assert.java:647)
at jdk.vm.ci.runtime.test.TestResolvedJavaType.getModifiersTest(TestResolvedJavaType.java:199)
The test is currently disabled:
https://github.com/openjdk/valhalla/blob/4c3231c3c163d529f64e8039d1ed228bac989058/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java#L190
The class that fails is org.junit.Test.None a class that is nested in an Interface.
The class file sversion number is 49, so the ACC_IDENTITY bit should be set by the VM for the inner class.
STDERR:
JavaTest Message: JUnit Failure: getModifiersTest(jdk.vm.ci.runtime.test.TestResolvedJavaType): HotSpotType<Lorg/junit/Test$None;, resolved>: 0x0 != 0x20 expected:<0> but was:<32>
java.lang.AssertionError: HotSpotType<Lorg/junit/Test$None;, resolved>: 0x0 != 0x20 expected:<0> but was:<32>
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failNotEquals(Assert.java:835)
at org.junit.Assert.assertEquals(Assert.java:647)
at jdk.vm.ci.runtime.test.TestResolvedJavaType.getModifiersTest(TestResolvedJavaType.java:199)
The test is currently disabled:
https://github.com/openjdk/valhalla/blob/4c3231c3c163d529f64e8039d1ed228bac989058/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java#L190