Open pshipton opened 4 months ago
Excluding for jdk23+ via https://github.com/adoptium/aqa-tests/pull/5252
@sophiaxu0424 @LongyuZhang @llxia
We are using byte-buddy-1.14.12.jar https://github.com/adoptium/TKG/blob/master/scripts/getDependencies.pl#L78
We can try with the latest version 1.14.15
(https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy/1.14.15) to see if this version works with JDK23.
Hi @llxia I am checking on using the latest version of byte-buddy for testing mockitoMockTest on JDK 23. wondering if you have a jdk url link that is working, the above Grinder link has expired and not able to find the jdk version. TIA!
wondering if you have a jdk url link that is working,
see CUSTOMIZED_SDK_URL in https://openj9-jenkins.osuosl.org/job/Test_openjdknext_j9_sanity.openjdk_x86-64_linux_Nightly/6/
Tried the latest byte-buddy version, and still mockito test failed,
13:57:05 Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.util.ArrayList, class java.lang.Object, class java.util.AbstractList, interface java.lang.Iterable, interface java.lang.Cloneable, class java.util.AbstractCollection, interface java.io.Serializable, interface java.util.List, interface java.util.Collection, interface java.util.RandomAccess, interface java.util.SequencedCollection]
13:57:05 at test.java.MockitoMockTest.main(MockitoMockTest.java:22)
13:57:05 Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.util.ArrayList, class java.lang.Object, class java.util.AbstractList, interface java.lang.Iterable, interface java.lang.Cloneable, class java.util.AbstractCollection, interface java.io.Serializable, interface java.util.List, interface java.util.Collection, interface java.util.RandomAccess, interface java.util.SequencedCollection]
13:57:05 at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168)
13:57:05 at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:399)
13:57:05 at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:190)
13:57:05 at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:410)
13:57:05 ... 1 more
13:57:05 Caused by: java.lang.IllegalStateException:
13:57:05 Byte Buddy could not instrument all classes within the mock's type hierarchy
More error information could be found here in Grinder: https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/40765/console
JDK version
13:55:52 =JAVA VERSION OUTPUT BEGIN=
13:55:52 openjdk version "23-internal" 2024-09-17
13:55:52 OpenJDK Runtime Environment (build 23-internal-adhoc.jenkins.BuildJDKnextx86-64linuxPersonal)
13:55:52 Eclipse OpenJ9 VM (build master-6e1e36f06c9, JRE 23 Linux amd64-64-Bit Compressed References 20240502_1486 (JIT enabled, AOT enabled)
13:55:52 OpenJ9 - 6e1e36f06c9
13:55:52 OMR - acd6f7e0b0c
13:55:52 JCL - 604bc7a1731 based on jdk-23+20)
@sophiaxu0424 Do you know if there has been a recent update to bytebuddy
https://openj9-jenkins.osuosl.org/job/Grinder_testList_0/294 amac jdk23 extended.functional testing on
MockitoMockTest_0