Public bug reported:
The test jdk/java/io/Serializable/records/ProhibitedMethods.java, which
used testng was modified to use junit. Consequently, the test fails on
s390x with:
-----
Foo[]
caught expected AssertionError: org.opentest4j.AssertionFailedError:
writeObject should not be invoked
caught expected AssertionError: java.lang.NoClassDefFoundError:
org/testng/Assert
----------System.err:(42/2816)----------
STARTED ProhibitedMethods::roundTrip '[1] Foo[]'
SUCCESSFUL ProhibitedMethods::roundTrip '[1] Foo[]' [12ms]
STARTED ProhibitedMethods::roundTrip '[2] Bar[x=19, y=20]'
SUCCESSFUL ProhibitedMethods::roundTrip '[2] Bar[x=19, y=20]' [1ms]
STARTED ProhibitedMethods::roundTrip '[3] Baz[u=str, v=8765]'
SUCCESSFUL ProhibitedMethods::roundTrip '[3] Baz[u=str, v=8765]' [14ms]
STARTED ProhibitedMethods::roundTrip '[4] Wibble[]'
SUCCESSFUL ProhibitedMethods::roundTrip '[4] Wibble[]' [0ms]
STARTED ProhibitedMethods::roundTrip '[5] Wobble[l=1000]'
SUCCESSFUL ProhibitedMethods::roundTrip '[5] Wobble[l=1000]' [1ms]
STARTED ProhibitedMethods::roundTrip '[6] Wubble[wobble=Wobble[l=9999],
wibble=Wibble[], s=str]'
SUCCESSFUL ProhibitedMethods::roundTrip '[6] Wubble[wobble=Wobble[l=9999],
wibble=Wibble[], s=str]' [1ms]
STARTED ProhibitedMethods::wellFormedGeneratedClasses
'wellFormedGeneratedClasses()'
org.opentest4j.AssertionFailedError: Expected AssertionError,
got:java.lang.NoClassDefFoundError: org/testng/Assert ==> expected: <true> but
was: <false>
at
org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at
org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
at
ProhibitedMethods.wellFormedGeneratedClasses(ProhibitedMethods.java:357)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
FAILED ProhibitedMethods::wellFormedGeneratedClasses
'wellFormedGeneratedClasses()' [3ms]
JavaTest Message: JUnit Platform Failure(s): 1
-----
This failure can be easily reproduced on non-s390x archs locally.
However, none of the non-s390x Launchpad builds list it as a failure.
** Affects: openjdk-21 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2161984
Title:
JTREG test failure on s390x: jdk/java/io/Serializable/records
/ProhibitedMethods.java
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-21/+bug/2161984/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs