[ https://issues.apache.org/jira/browse/JCR-5048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke updated JCR-5048: -------------------------------- Fix Version/s: 2.21.28 > Jackrabbit should build and test with Java 23 > --------------------------------------------- > > Key: JCR-5048 > URL: https://issues.apache.org/jira/browse/JCR-5048 > Project: Jackrabbit Content Repository > Issue Type: Bug > Reporter: Julian Reschke > Assignee: Julian Reschke > Priority: Major > Fix For: 2.21.28 > > > Right now: > {noformat} > Caused by: java.lang.IllegalStateException: > Byte Buddy could not instrument all classes within the mock's type hierarchy > This problem should never occur for javac-compiled classes. This problem has > been observed for classes that are: > - Compiled by older versions of scalac > - Classes that are part of the Android distribution > at > org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:285) > at > org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:218) > at > org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:78) > at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168) > at > net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:399) > at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:190) > at > net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:410) > at > org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:75) > at > org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:414) > at > org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:373) > at > org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:352) > at > org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56) > at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:99) > at org.mockito.internal.MockitoCore.mock(MockitoCore.java:84) > at org.mockito.Mockito.spy(Mockito.java:2224) > ... 20 more > Caused by: java.lang.IllegalArgumentException: Java 23 (67) is not supported > by the current version of Byte Buddy which officially supports Java 22 (66) - > update Byte Buddy or set net.bytebuddy.experimental as a VM property > at > net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:100) > at > net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:4011) > at > net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2224) > at > net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$UsingTypeWriter.make(DynamicType.java:4055) > at > net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3739) > at > org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:402) > at > java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:242) > at > java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188) > at > java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610) > at > java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native > Method) > at > java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225) > at > org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:281) > ... 34 more > {noformat} > Probably requires mockito/bytebuddy updates. -- This message was sent by Atlassian Jira (v8.20.10#820010)