clintropolis commented on issue #14502:
URL: https://github.com/apache/druid/issues/14502#issuecomment-1613663559
I'll share my notes since I've been slowly working my way through this!
Equalsverifier based tests fail with:
```
Java 20 (64) is not supported by the current version of Byte Buddy which
officially supports Java 18 (62) - update Byte Buddy or set
net.bytebuddy.experimental as a VM property
```
which is resolved by manually adding the newest version of byte-buddy to the
pom (I also updated both equalsverifier and mockito to latest versions which
also have transient dependencies on byte-buddy).
Before updating easymock we also see some failures of this form
```
[ERROR]
org.apache.druid.segment.writeout.FileWriteOutBytesTest.writeBufferSmallerThanCapacityShouldIncrementSizeCorrectly
Time elapsed: 0 s <<< ERROR!
java.lang.IllegalArgumentException: Unsupported class file major version 64
```
which go away after updating easymock, however I am still seeing a failure
on the latest version of easymock:
```
[ERROR]
org.apache.druid.query.aggregation.constant.LongConstantBufferAggregatorTest.testAggregate
Time elapsed: 0.018 s <<< ERROR!
java.lang.IllegalArgumentException: Could not create type
at org.easymock.bytebuddy.TypeCache.findOrInsert(TypeCache.java:170)
at
org.easymock.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:399)
at
org.easymock.internal.ClassProxyFactory.createProxy(ClassProxyFactory.java:136)
at org.easymock.internal.MocksControl.createMock(MocksControl.java:108)
at org.easymock.internal.MocksControl.createMock(MocksControl.java:81)
at org.easymock.IMocksControl.mock(IMocksControl.java:44)
at org.easymock.EasyMock.mock(EasyMock.java:70)
...
Caused by: java.lang.IllegalStateException:
java.lang.IncompatibleClassChangeError: class
org.easymock.mocks.ByteBuffer$$$EasyMock$1 cannot inherit from sealed class
java.nio.ByteBuffer
```
which is as far as i've got so far, I think maybe easymock hasn't been
updated to be cool with java 20, as
https://github.com/easymock/easymock/releases has an older version of bytebuddy
than i recently added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]