Add java21-to-25 module: compile-once probes on JDK 21 and 25, removed APIs, build matrix, pinning, compact headers and containers
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
# 01-runtime-behaviour: classes compiled ONCE with JDK 21 (--release 21), run unchanged on JDK 21 and JDK 25
|
||||
--- SecurityManagerProbe
|
||||
[21.0.13.1] setSecurityManager: UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
|
||||
[25.0.5.1] setSecurityManager: UnsupportedOperationException: Setting a Security Manager is not supported
|
||||
--- SubjectProbe
|
||||
[21.0.13.1] Subject.getSubject: returned null
|
||||
[21.0.13.1] Subject.current(): returned null
|
||||
[25.0.5.1] Subject.getSubject: UnsupportedOperationException: getSubject is not supported
|
||||
[25.0.5.1] Subject.current(): returned null
|
||||
--- ThreadControlProbe
|
||||
[21.0.13.1] suspend() java.lang.UnsupportedOperationException
|
||||
[21.0.13.1] resume() java.lang.UnsupportedOperationException
|
||||
[21.0.13.1] stop() java.lang.UnsupportedOperationException
|
||||
[25.0.5.1] suspend() java.lang.NoSuchMethodError: 'void java.lang.Thread.suspend()'
|
||||
[25.0.5.1] resume() java.lang.NoSuchMethodError: 'void java.lang.Thread.resume()'
|
||||
[25.0.5.1] stop() java.lang.UnsupportedOperationException
|
||||
--- UnsafeProbe
|
||||
[21.0.13.1] read back: 42
|
||||
[25.0.5.1] WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
||||
[25.0.5.1] WARNING: sun.misc.Unsafe::allocateMemory has been called by UnsafeProbe (file:<work>/c21/)
|
||||
[25.0.5.1] WARNING: Please consider reporting this to the maintainers of class UnsafeProbe
|
||||
[25.0.5.1] WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
|
||||
[25.0.5.1] read back: 42
|
||||
--- JniProbe
|
||||
[21.0.13.1] System.loadLibrary("net") returned
|
||||
[25.0.5.1] WARNING: A restricted method in java.lang.System has been called
|
||||
[25.0.5.1] WARNING: java.lang.System::loadLibrary has been called by JniProbe in an unnamed module (file:<work>/c21/)
|
||||
[25.0.5.1] WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
|
||||
[25.0.5.1] WARNING: Restricted methods will be blocked in a future release unless native access is enabled
|
||||
[25.0.5.1] System.loadLibrary("net") returned
|
||||
--- FinalizerProbe
|
||||
[21.0.13.1] finalize() ran: true
|
||||
[25.0.5.1] finalize() ran: true
|
||||
--- DefaultsProbe
|
||||
[21.0.13.1] java.version = 21.0.13.1
|
||||
[21.0.13.1] availableProcessors = 2
|
||||
[21.0.13.1] maxMemory MiB = 1536
|
||||
[21.0.13.1] collector bean: G1 Young Generation
|
||||
[21.0.13.1] collector bean: G1 Concurrent GC
|
||||
[21.0.13.1] collector bean: G1 Old Generation
|
||||
[21.0.13.1] UseCompactObjectHeaders = (no such flag in this JVM)
|
||||
[21.0.13.1] ZGenerational = false
|
||||
[25.0.5.1] java.version = 25.0.5.1
|
||||
[25.0.5.1] availableProcessors = 2
|
||||
[25.0.5.1] maxMemory MiB = 1536
|
||||
[25.0.5.1] collector bean: G1 Young Generation
|
||||
[25.0.5.1] collector bean: G1 Concurrent GC
|
||||
[25.0.5.1] collector bean: G1 Old Generation
|
||||
[25.0.5.1] UseCompactObjectHeaders = false
|
||||
[25.0.5.1] ZGenerational = (no such flag in this JVM)
|
||||
--- SecurityManagerProbe with -Djava.security.manager=allow
|
||||
[21.0.13.1] setSecurityManager: installed = true
|
||||
[25.0.5.1] Error occurred during initialization of VM
|
||||
[25.0.5.1] java.lang.Error: A command line option has attempted to allow or enable the Security Manager. Enabling a Security Manager is not supported.
|
||||
--- UnsafeProbe on 25 with --sun-misc-unsafe-memory-access=deny
|
||||
[25.0.5.1] failed: UnsupportedOperationException: allocateMemory
|
||||
--- UnsafeProbe on 25 with --sun-misc-unsafe-memory-access=debug
|
||||
[25.0.5.1] WARNING: sun.misc.Unsafe::allocateMemory called by UnsafeProbe (file:<work>/c21/)
|
||||
[25.0.5.1] at UnsafeProbe.main(UnsafeProbe.java:11)
|
||||
[25.0.5.1] WARNING: sun.misc.Unsafe::putLong called by UnsafeProbe (file:<work>/c21/)
|
||||
[25.0.5.1] at UnsafeProbe.main(UnsafeProbe.java:12)
|
||||
[25.0.5.1] WARNING: sun.misc.Unsafe::getLong called by UnsafeProbe (file:<work>/c21/)
|
||||
[25.0.5.1] at UnsafeProbe.main(UnsafeProbe.java:13)
|
||||
[25.0.5.1] read back: 42
|
||||
[25.0.5.1] WARNING: sun.misc.Unsafe::freeMemory called by UnsafeProbe (file:<work>/c21/)
|
||||
[25.0.5.1] at UnsafeProbe.main(UnsafeProbe.java:14)
|
||||
--- JniProbe on 25 with --enable-native-access=ALL-UNNAMED
|
||||
[25.0.5.1] System.loadLibrary("net") returned
|
||||
--- JniProbe on 25 with --illegal-native-access=deny
|
||||
[25.0.5.1] failed: IllegalCallerException: Illegal native access from an unnamed module (file:<work>/c21/)
|
||||
--- FinalizerProbe on 25 with --finalization=disabled
|
||||
[25.0.5.1] finalize() ran: false
|
||||
@@ -0,0 +1,77 @@
|
||||
# 02-startup-flags: flag, then for each JDK the exit code and the first line the JVM printed (if any)
|
||||
--- -Djava.security.manager=allow
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 1 Error occurred during initialization of VM
|
||||
--- -XX:+UseZGC -XX:+ZGenerational
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Ignoring option ZGenerational; support was removed in 24.0
|
||||
--- -XX:+UseZGC -XX:-ZGenerational
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Ignoring option ZGenerational; support was removed in 24.0
|
||||
--- -XX:+UseCompactObjectHeaders
|
||||
[21.0.13.1] exit 1 Unrecognized VM option 'UseCompactObjectHeaders'
|
||||
[25.0.5.1] exit 0
|
||||
--- -XX:+UnlockExperimentalVMOptions -XX:+UseCompactObjectHeaders
|
||||
[21.0.13.1] exit 1 Unrecognized VM option 'UseCompactObjectHeaders'
|
||||
[25.0.5.1] exit 0
|
||||
--- -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
|
||||
[21.0.13.1] exit 1 Error occurred during initialization of VM
|
||||
[25.0.5.1] exit 0
|
||||
--- -XX:+UseStringDeduplication
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0
|
||||
--- -XX:+UseLargePagesIndividualAllocation
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0
|
||||
--- -XX:+UseNeon
|
||||
[21.0.13.1] exit 1 Unrecognized VM option 'UseNeon'
|
||||
[25.0.5.1] exit 1 Unrecognized VM option 'UseNeon'
|
||||
--- -XX:LockingMode=2
|
||||
[21.0.13.1] exit 1 Error: VM option 'LockingMode' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
|
||||
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Option LockingMode was deprecated in version 24.0 and will likely be removed in a future release.
|
||||
--- -XX:+UseEmptySlotsInSupers
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 1 Unrecognized VM option 'UseEmptySlotsInSupers'
|
||||
--- -XX:+UseOprofile
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Option UseOprofile was deprecated in version 25.0 and will likely be removed in a future release.
|
||||
--- -XX:+DontYieldALot
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 1 Unrecognized VM option 'DontYieldALot'
|
||||
--- -Xnoagent
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 1 Unrecognized option: -Xnoagent
|
||||
--- -XX:+RegisterFinalizersAtInit
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 1 Unrecognized VM option 'RegisterFinalizersAtInit'
|
||||
--- -XX:+UseCompressedClassPointers
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Option UseCompressedClassPointers was deprecated in version 25.0 and will likely be removed in a future release.
|
||||
--- -XX:-UseCompressedClassPointers
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Option UseCompressedClassPointers was deprecated in version 25.0 and will likely be removed in a future release.
|
||||
--- -XX:+PreserveAllAnnotations
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 1 Unrecognized VM option 'PreserveAllAnnotations'
|
||||
--- -XX:+UseAdaptiveSizePolicyWithSystemGC
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0
|
||||
--- -XX:+EnableDynamicAgentLoading
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0
|
||||
--- --sun-misc-unsafe-memory-access=allow
|
||||
[21.0.13.1] exit 1 Unrecognized option: --sun-misc-unsafe-memory-access=allow
|
||||
[25.0.5.1] exit 0
|
||||
--- --enable-native-access=ALL-UNNAMED
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0
|
||||
--- --illegal-native-access=deny
|
||||
[21.0.13.1] exit 1 Unrecognized option: --illegal-native-access=deny
|
||||
[25.0.5.1] exit 0
|
||||
--- -Djdk.tracePinnedThreads=full
|
||||
[21.0.13.1] exit 0
|
||||
[25.0.5.1] exit 0
|
||||
--- JDK 25: compact object headers together with -XX:-UseCompressedClassPointers
|
||||
OpenJDK 64-Bit Server VM warning: Compact object headers require compressed class pointers. Disabling compact object headers.
|
||||
--- JDK 25: CDS archive picked up with compact headers
|
||||
trying to map <jdk25>/lib/server/classes_coh.jsa
|
||||
@@ -0,0 +1,49 @@
|
||||
# 03-source-and-preview: preview code written for 21, and 25 APIs tried on 21
|
||||
=== StringTemplateDemo: compile on 21 with --enable-preview, run on 21
|
||||
Hello Ankur
|
||||
=== StringTemplateDemo: run the same class on 25 (with --enable-preview)
|
||||
Error: LinkageError occurred while loading main class StringTemplateDemo
|
||||
java.lang.UnsupportedClassVersionError: StringTemplateDemo (class file version 65.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 69.65535
|
||||
=== StringTemplateDemo: recompile the source on 25 with --enable-preview
|
||||
src/preview21/StringTemplateDemo.java:5: error: illegal escape character
|
||||
System.out.println(STR."Hello \{name}");
|
||||
^
|
||||
1 error
|
||||
=== StructuredTaskDemo: compile on 21 with --enable-preview, run on 21
|
||||
user-7 order-42
|
||||
=== StructuredTaskDemo: run the same class on 25 (with --enable-preview)
|
||||
Error: LinkageError occurred while loading main class StructuredTaskDemo
|
||||
java.lang.UnsupportedClassVersionError: StructuredTaskDemo (class file version 65.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 69.65535
|
||||
=== StructuredTaskDemo: recompile the source on 25 with --enable-preview
|
||||
src/preview21/StructuredTaskDemo.java:6: error: cannot find symbol
|
||||
try (var scope = new StructuredTaskScope.ShutdownOnFailure()) {
|
||||
^
|
||||
symbol: class ShutdownOnFailure
|
||||
location: interface StructuredTaskScope
|
||||
1 error
|
||||
=== ThreadSuspendCall.java: javac on 21, then 25
|
||||
21 exit 0
|
||||
src/broken/ThreadSuspendCall.java:4: error: cannot find symbol
|
||||
t.suspend();
|
||||
^
|
||||
symbol: method suspend()
|
||||
location: variable t of type Thread
|
||||
1 error
|
||||
=== ScopedValueDemo.java: javac on 21
|
||||
src/new25/ScopedValueDemo.java:3: error: ScopedValue is a preview API and is disabled by default.
|
||||
private static final ScopedValue<String> REQUEST_ID = ScopedValue.newInstance();
|
||||
^
|
||||
(use --enable-preview to enable preview APIs)
|
||||
=== ScopedValueDemo.java: javac and java on 25, no flags
|
||||
handling req-17 on main
|
||||
bound outside the scope: false
|
||||
=== GathererDemo.java: javac on 21
|
||||
src/new25/GathererDemo.java:2: error: cannot find symbol
|
||||
import java.util.stream.Gatherers;
|
||||
^
|
||||
symbol: class Gatherers
|
||||
=== GathererDemo.java: javac and java on 25, no flags
|
||||
[[1, 2], [3, 4], [5]]
|
||||
[[1, 2, 3], [2, 3, 4]]
|
||||
[1, 3, 6, 10]
|
||||
[A, B, C]
|
||||
@@ -0,0 +1,76 @@
|
||||
# 04-removed-api: public types and methods in JDK 21 that are gone in JDK 25 (javap -public over java.* and selected jdk.* modules)
|
||||
## public types removed
|
||||
java.lang.StringTemplate
|
||||
java.lang.StringTemplate$Processor
|
||||
java.lang.StringTemplate$Processor$Linkage
|
||||
java.lang.runtime.TemplateRuntime
|
||||
java.util.FormatProcessor
|
||||
java.util.concurrent.StructuredTaskScope$ShutdownOnFailure
|
||||
java.util.concurrent.StructuredTaskScope$ShutdownOnSuccess
|
||||
javax.management.loading.MLet
|
||||
javax.management.loading.MLetContent
|
||||
javax.management.loading.MLetMBean
|
||||
javax.management.loading.PrivateMLet
|
||||
javax.xml.catalog.GroupEntry$ResolveType
|
||||
jdk.jfr.events.EventConfigurations
|
||||
jdk.jfr.events.VirtualThreadPinnedEvent
|
||||
## public methods removed (not inherited from a supertype either)
|
||||
java.awt.peer.WindowPeer.repositionSecurityWarning()
|
||||
java.lang.Class.isUnnamedClass()
|
||||
java.lang.ScopedValue.callWhere(java.lang.ScopedValue,T,java.util.concurrent.Callable)
|
||||
java.lang.ScopedValue.getWhere(java.lang.ScopedValue,T,java.util.function.Supplier)
|
||||
java.lang.ScopedValue.runWhere(java.lang.ScopedValue,T,java.lang.Runnable)
|
||||
java.lang.ScopedValue$Carrier.call(java.util.concurrent.Callable)
|
||||
java.lang.ScopedValue$Carrier.get(java.util.function.Supplier)
|
||||
java.lang.Thread.countStackFrames()
|
||||
java.lang.Thread.resume()
|
||||
java.lang.Thread.suspend()
|
||||
java.lang.ThreadGroup.resume()
|
||||
java.lang.ThreadGroup.stop()
|
||||
java.lang.ThreadGroup.suspend()
|
||||
java.lang.foreign.Linker$Option.isTrivial()
|
||||
java.lang.foreign.MemoryLayout.sequenceLayout(java.lang.foreign.MemoryLayout)
|
||||
java.lang.foreign.MemorySegment.getUtf8String(long)
|
||||
java.lang.foreign.MemorySegment.segmentOffset(java.lang.foreign.MemorySegment)
|
||||
java.lang.foreign.MemorySegment.setUtf8String(long,java.lang.String)
|
||||
java.lang.foreign.SegmentAllocator.allocate(java.lang.foreign.AddressLayout,java.lang.foreign.MemorySegment)
|
||||
java.lang.foreign.SegmentAllocator.allocate(java.lang.foreign.ValueLayout$OfByte,byte)
|
||||
java.lang.foreign.SegmentAllocator.allocate(java.lang.foreign.ValueLayout$OfChar,char)
|
||||
java.lang.foreign.SegmentAllocator.allocate(java.lang.foreign.ValueLayout$OfDouble,double)
|
||||
java.lang.foreign.SegmentAllocator.allocate(java.lang.foreign.ValueLayout$OfFloat,float)
|
||||
java.lang.foreign.SegmentAllocator.allocate(java.lang.foreign.ValueLayout$OfInt,int)
|
||||
java.lang.foreign.SegmentAllocator.allocate(java.lang.foreign.ValueLayout$OfLong,long)
|
||||
java.lang.foreign.SegmentAllocator.allocate(java.lang.foreign.ValueLayout$OfShort,short)
|
||||
java.lang.foreign.SegmentAllocator.allocateArray(java.lang.foreign.MemoryLayout,long)
|
||||
java.lang.foreign.SegmentAllocator.allocateArray(java.lang.foreign.ValueLayout$OfByte,byte...)
|
||||
java.lang.foreign.SegmentAllocator.allocateArray(java.lang.foreign.ValueLayout$OfChar,char...)
|
||||
java.lang.foreign.SegmentAllocator.allocateArray(java.lang.foreign.ValueLayout$OfDouble,double...)
|
||||
java.lang.foreign.SegmentAllocator.allocateArray(java.lang.foreign.ValueLayout$OfFloat,float...)
|
||||
java.lang.foreign.SegmentAllocator.allocateArray(java.lang.foreign.ValueLayout$OfInt,int...)
|
||||
java.lang.foreign.SegmentAllocator.allocateArray(java.lang.foreign.ValueLayout$OfLong,long...)
|
||||
java.lang.foreign.SegmentAllocator.allocateArray(java.lang.foreign.ValueLayout$OfShort,short...)
|
||||
java.lang.foreign.SegmentAllocator.allocateUtf8String(java.lang.String)
|
||||
java.lang.foreign.ValueLayout.arrayElementVarHandle(int...)
|
||||
java.lang.invoke.MethodHandles.memorySegmentViewVarHandle(java.lang.foreign.ValueLayout)
|
||||
java.lang.invoke.StringConcatFactory.makeConcatWithTemplate(java.util.List,java.util.List)
|
||||
java.lang.invoke.StringConcatFactory.makeConcatWithTemplateCluster(java.util.List,java.util.List,int)
|
||||
java.lang.invoke.StringConcatFactory.makeConcatWithTemplateGetters(java.util.List,java.util.List,int)
|
||||
java.util.concurrent.StructuredTaskScope.StructuredTaskScope()
|
||||
java.util.concurrent.StructuredTaskScope.StructuredTaskScope(java.lang.String,java.util.concurrent.ThreadFactory)
|
||||
java.util.concurrent.StructuredTaskScope.isShutdown()
|
||||
java.util.concurrent.StructuredTaskScope.joinUntil(java.time.Instant)
|
||||
java.util.concurrent.StructuredTaskScope.shutdown()
|
||||
java.util.concurrent.StructuredTaskScope$Subtask.task()
|
||||
javax.lang.model.element.TypeElement.isUnnamed()
|
||||
javax.swing.plaf.basic.BasicSliderUI.BasicSliderUI()
|
||||
javax.swing.plaf.synth.SynthLookAndFeel.load(java.net.URL)
|
||||
jdk.jfr.events.ActiveRecordingEvent.commit(long,long,long,java.lang.String,java.lang.String,boolean,long,long,long,long,long)
|
||||
jdk.jfr.events.ActiveSettingEvent.commit(long,long,long,java.lang.String,java.lang.String)
|
||||
jdk.jfr.events.ErrorThrownEvent.commit(long,long,java.lang.String,java.lang.Class)
|
||||
jdk.jfr.events.ExceptionThrownEvent.commit(long,long,java.lang.String,java.lang.Class)
|
||||
jdk.jfr.events.FileForceEvent.commit(long,long,java.lang.String,boolean)
|
||||
jdk.jfr.events.FileReadEvent.commit(long,long,java.lang.String,long,boolean)
|
||||
jdk.jfr.events.FileWriteEvent.commit(long,long,java.lang.String,long)
|
||||
jdk.jfr.events.SocketReadEvent.commit(long,long,java.lang.String,java.lang.String,int,long,long,boolean)
|
||||
jdk.jfr.events.SocketWriteEvent.commit(long,long,java.lang.String,java.lang.String,int,long)
|
||||
jdk.tools.jlink.builder.DefaultImageBuilder.DefaultImageBuilder(java.nio.file.Path,java.util.Map)
|
||||
@@ -0,0 +1,10 @@
|
||||
# 05-lombok: mvn compile on JDK 25, release 25. 'class path' = plain provided dependency; 'declared' = annotationProcessorPaths
|
||||
FAIL Lombok 1.18.34, declared processor
|
||||
FAIL Lombok 1.18.36, declared processor
|
||||
OK Lombok 1.18.38, declared processor
|
||||
OK Lombok 1.18.40, declared processor
|
||||
OK Lombok 1.18.48, declared processor
|
||||
FAIL Lombok 1.18.48, class path only
|
||||
[ERROR] COMPILATION ERROR :
|
||||
[ERROR] <work>/matrix/lombok/src/main/java/demo/App.java:[14,45] constructor Person in class demo.App.Person cannot be applied to given types;
|
||||
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.15.0:compile (default-compile) on project java25-lombok: Compilation failure
|
||||
@@ -0,0 +1,28 @@
|
||||
# 06-mockito: mvn test on JDK 25, release 25, JUnit 6.1.3, mocking a concrete class
|
||||
FAIL Mockito 5.14.2
|
||||
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.096 s <<< FAILURE! -- in demo.GreeterTest
|
||||
[ERROR] demo.GreeterTest.stubsAConcreteClass -- Time elapsed: 1.994 s <<< ERROR!
|
||||
Caused by: java.lang.IllegalArgumentException: Java 25 (69) is not supported by the current version of Byte Buddy which officially supports Java 24 (68) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
|
||||
FAIL Mockito 5.15.2
|
||||
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.052 s <<< FAILURE! -- in demo.GreeterTest
|
||||
[ERROR] demo.GreeterTest.stubsAConcreteClass -- Time elapsed: 1.916 s <<< ERROR!
|
||||
Caused by: java.lang.IllegalArgumentException: Java 25 (69) is not supported by the current version of Byte Buddy which officially supports Java 24 (68) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
|
||||
FAIL Mockito 5.17.0
|
||||
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.314 s <<< FAILURE! -- in demo.GreeterTest
|
||||
[ERROR] demo.GreeterTest.stubsAConcreteClass -- Time elapsed: 2.207 s <<< ERROR!
|
||||
Caused by: java.lang.IllegalArgumentException: Java 25 (69) is not supported by the current version of Byte Buddy which officially supports Java 24 (68) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
|
||||
OK Mockito 5.18.0
|
||||
OK Mockito 5.25.0
|
||||
|
||||
--- Mockito 5.14.2 with -Dnet.bytebuddy.experimental=true (stop-gap, not a fix)
|
||||
OK Mockito 5.14.2 + experimental
|
||||
|
||||
--- Mockito 5.25.0, default: notices printed during the test run
|
||||
Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build as described in Mockito's docu
|
||||
WARNING: A Java agent has been loaded dynamically (~/.m2/repository/net/bytebuddy/byte-buddy-agent/1.18.17/byte-buddy-agent-1.18.17.jar)
|
||||
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
|
||||
PROBE ok: mock says hi
|
||||
|
||||
--- Mockito 5.25.0 with -Pmockito-agent (agent registered at startup)
|
||||
PROBE ok: mock says hi
|
||||
[INFO] BUILD SUCCESS
|
||||
@@ -0,0 +1,10 @@
|
||||
# 07-jacoco: mvn test -Pjacoco on JDK 25, release 25. 'agent errors' counts instrumentation failures in the log
|
||||
JaCoCo 0.8.11: BUILD FAILURE, agent errors: 31
|
||||
java.lang.instrument.IllegalClassFormatException: Error while instrumenting demo/GreeterTest with JaCoCo 0.8.11.202310140853/f33756c.
|
||||
Caused by: java.io.IOException: Error while instrumenting demo/GreeterTest with JaCoCo 0.8.11.202310140853/f33756c.
|
||||
JaCoCo 0.8.12: BUILD FAILURE, agent errors: 31
|
||||
java.lang.instrument.IllegalClassFormatException: Error while instrumenting demo/GreeterTest with JaCoCo 0.8.12.202403310830/dbfb6f2.
|
||||
Caused by: java.io.IOException: Error while instrumenting demo/GreeterTest with JaCoCo 0.8.12.202403310830/dbfb6f2.
|
||||
JaCoCo 0.8.13: BUILD SUCCESS, agent errors: 0
|
||||
JaCoCo 0.8.14: BUILD SUCCESS, agent errors: 0
|
||||
JaCoCo 0.8.15: BUILD SUCCESS, agent errors: 0
|
||||
@@ -0,0 +1,17 @@
|
||||
# 08-spring-boot: a component-scanning app compiled with release 25 and started on JDK 25
|
||||
FAIL Boot 3.2.12
|
||||
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 69
|
||||
FAIL Boot 3.3.0
|
||||
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 69
|
||||
FAIL Boot 3.3.13
|
||||
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 69
|
||||
FAIL Boot 3.4.0
|
||||
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 69
|
||||
FAIL Boot 3.4.3
|
||||
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 69
|
||||
OK Boot 3.4.4
|
||||
OK Boot 3.4.5
|
||||
OK Boot 3.4.13
|
||||
OK Boot 3.5.16
|
||||
OK Boot 4.0.0
|
||||
OK Boot 4.2.0
|
||||
@@ -0,0 +1,12 @@
|
||||
# 09-scanners: JDK 25 tools pointed at a jar built by JDK 21
|
||||
--- jdeps --jdk-internals probes.jar
|
||||
probes.jar -> jdk.unsupported
|
||||
UnsafeProbe -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
|
||||
--- jdeprscan --release 25 --for-removal probes.jar
|
||||
class FinalizerProbe overrides deprecated method java/lang/Object::finalize()V (forRemoval=true)
|
||||
class SecurityManagerProbe uses deprecated class java/lang/SecurityManager (forRemoval=true)
|
||||
class SecurityManagerProbe uses deprecated method java/lang/System::getSecurityManager()Ljava/lang/SecurityManager; (forRemoval=true)
|
||||
class SecurityManagerProbe uses deprecated method java/lang/System::setSecurityManager(Ljava/lang/SecurityManager;)V (forRemoval=true)
|
||||
class SubjectProbe uses deprecated class java/security/AccessController (forRemoval=true)
|
||||
class SubjectProbe uses deprecated method javax/security/auth/Subject::getSubject(Ljava/security/AccessControlContext;)Ljavax/security/auth/Subject; (forRemoval=true)
|
||||
class ThreadControlProbe uses deprecated method java/lang/Thread::stop()V (forRemoval=true)
|
||||
@@ -0,0 +1,7 @@
|
||||
# 10-locale-diff: LocaleProbe (compiled once on 21) run on both JDKs; only the lines that differ. 81 formats compared
|
||||
[21] en-IN | dateTime FULL | Saturday, 5 September, 2026, 2:07:09\u202Fpm India Standard Time
|
||||
[25] en-IN | dateTime FULL | Saturday, 5 September 2026, 2:07:09\u202Fpm India Standard Time
|
||||
[21] en-IN | dateTime MEDIUM | 05-Sept-2026, 2:07:09\u202Fpm
|
||||
[25] en-IN | dateTime MEDIUM | 5 Sept 2026, 2:07:09\u202Fpm
|
||||
[21] mr-IN | currency | \u20B9\u0967\u0968,\u0969\u096A\u096B,\u096C\u096D\u096E.\u096B\u0966
|
||||
[25] mr-IN | currency | \u20B9\u00A0\u0967\u0968,\u0969\u096A\u096B,\u096C\u096D\u096E.\u096B\u0966
|
||||
@@ -0,0 +1,18 @@
|
||||
# 11-pinning: compiled once on 21; run with -Djdk.virtualThreadScheduler.parallelism=2. Elapsed times are machine dependent
|
||||
--- PinningProbe
|
||||
[21.0.13.1] java 21: 20 threads, 100 ms sleep inside synchronized
|
||||
[21.0.13.1] elapsed = 1037 ms, jdk.VirtualThreadPinned events = 20
|
||||
[25.0.5.1] java 25: 20 threads, 100 ms sleep inside synchronized
|
||||
[25.0.5.1] elapsed = 111 ms, jdk.VirtualThreadPinned events = 0
|
||||
--- ClassInitPinningProbe
|
||||
[21.0.13.1] java 21: 8 classes, 100 ms sleep inside each static initializer
|
||||
[21.0.13.1] elapsed = 430 ms, jdk.VirtualThreadPinned events = 8
|
||||
[25.0.5.1] java 25: 8 classes, 100 ms sleep inside each static initializer
|
||||
[25.0.5.1] elapsed = 423 ms, jdk.VirtualThreadPinned events = 8
|
||||
[25.0.5.1] first event pinnedReason = VM call to ClassInitPinningProbe$C0.<clinit> on stack
|
||||
--- PinningProbe with -Djdk.tracePinnedThreads=short (first lines)
|
||||
[21.0.13.1] VirtualThread[#24]/runnable@ForkJoinPool-1-worker-2 reason:MONITOR
|
||||
[21.0.13.1] PinningProbe.lambda$main$0(PinningProbe.java:25) <== monitors:1
|
||||
[21.0.13.1] java 21: 20 threads, 100 ms sleep inside synchronized
|
||||
[25.0.5.1] java 25: 20 threads, 100 ms sleep inside synchronized
|
||||
[25.0.5.1] elapsed = 113 ms, jdk.VirtualThreadPinned events = 0
|
||||
@@ -0,0 +1,19 @@
|
||||
# 12-object-headers: bytes allocated per object on JDK 25.0.5.1, 1,000,000 objects each
|
||||
--- default (-XX:-UseCompactObjectHeaders)
|
||||
new Object() 16 bytes/object
|
||||
record() 16 bytes/object
|
||||
record(int) 16 bytes/object
|
||||
record(int,int) 24 bytes/object
|
||||
record(int,int,int) 24 bytes/object
|
||||
record(int,Object) 24 bytes/object
|
||||
Long (outside cache) 24 bytes/object
|
||||
byte[8] 24 bytes/object
|
||||
--- -XX:+UseCompactObjectHeaders
|
||||
new Object() 8 bytes/object
|
||||
record() 8 bytes/object
|
||||
record(int) 16 bytes/object
|
||||
record(int,int) 16 bytes/object
|
||||
record(int,int,int) 24 bytes/object
|
||||
record(int,Object) 16 bytes/object
|
||||
Long (outside cache) 16 bytes/object
|
||||
byte[8] 24 bytes/object
|
||||
@@ -0,0 +1,6 @@
|
||||
# 13-gradle: 'gradle run' with Gradle running on JDK 25.0.5.1
|
||||
--- Gradle 8.14.3
|
||||
* What went wrong:
|
||||
25.0.5.1
|
||||
--- Gradle 9.9.3
|
||||
running on Java 25
|
||||
@@ -0,0 +1,72 @@
|
||||
# 14-containers: eclipse-temurin 21-jre and 25-jre, DefaultsProbe compiled once on 21
|
||||
=== eclipse-temurin:21-jre --cpus=2 --memory=2g
|
||||
java.version = 21.0.13.1
|
||||
availableProcessors = 2
|
||||
maxMemory MiB = 512
|
||||
collector bean: G1 Young Generation
|
||||
collector bean: G1 Concurrent GC
|
||||
collector bean: G1 Old Generation
|
||||
UseCompactObjectHeaders = (no such flag in this JVM)
|
||||
ZGenerational = false
|
||||
=== eclipse-temurin:25-jre --cpus=2 --memory=2g
|
||||
java.version = 25.0.5.1
|
||||
availableProcessors = 2
|
||||
maxMemory MiB = 512
|
||||
collector bean: G1 Young Generation
|
||||
collector bean: G1 Concurrent GC
|
||||
collector bean: G1 Old Generation
|
||||
UseCompactObjectHeaders = false
|
||||
ZGenerational = (no such flag in this JVM)
|
||||
=== eclipse-temurin:21-jre --cpus=1 --memory=2g
|
||||
java.version = 21.0.13.1
|
||||
availableProcessors = 1
|
||||
maxMemory MiB = 494
|
||||
collector bean: Copy
|
||||
collector bean: MarkSweepCompact
|
||||
UseCompactObjectHeaders = (no such flag in this JVM)
|
||||
ZGenerational = false
|
||||
=== eclipse-temurin:25-jre --cpus=1 --memory=2g
|
||||
java.version = 25.0.5.1
|
||||
availableProcessors = 1
|
||||
maxMemory MiB = 494
|
||||
collector bean: Copy
|
||||
collector bean: MarkSweepCompact
|
||||
UseCompactObjectHeaders = false
|
||||
ZGenerational = (no such flag in this JVM)
|
||||
=== eclipse-temurin:21-jre --cpus=2 --memory=512m
|
||||
java.version = 21.0.13.1
|
||||
availableProcessors = 2
|
||||
maxMemory MiB = 123
|
||||
collector bean: Copy
|
||||
collector bean: MarkSweepCompact
|
||||
UseCompactObjectHeaders = (no such flag in this JVM)
|
||||
ZGenerational = false
|
||||
=== eclipse-temurin:25-jre --cpus=2 --memory=512m
|
||||
java.version = 25.0.5.1
|
||||
availableProcessors = 2
|
||||
maxMemory MiB = 123
|
||||
collector bean: Copy
|
||||
collector bean: MarkSweepCompact
|
||||
UseCompactObjectHeaders = false
|
||||
ZGenerational = (no such flag in this JVM)
|
||||
=== eclipse-temurin:21-jre -XX:+UseZGC
|
||||
collector bean: ZGC Cycles
|
||||
collector bean: ZGC Pauses
|
||||
ZGenerational = false
|
||||
=== eclipse-temurin:25-jre -XX:+UseZGC
|
||||
collector bean: ZGC Minor Cycles
|
||||
collector bean: ZGC Minor Pauses
|
||||
collector bean: ZGC Major Cycles
|
||||
collector bean: ZGC Major Pauses
|
||||
ZGenerational = (no such flag in this JVM)
|
||||
=== rollback: the 25 flag set through JDK_JAVA_OPTIONS, image rolled back to 21
|
||||
NOTE: Picked up JDK_JAVA_OPTIONS: -XX:+UseCompactObjectHeaders
|
||||
Unrecognized VM option 'UseCompactObjectHeaders'
|
||||
Error: Could not create the Java Virtual Machine.
|
||||
Error: A fatal exception has occurred. Program will exit.
|
||||
=== same, with -XX:+IgnoreUnrecognizedVMOptions in front
|
||||
NOTE: Picked up JDK_JAVA_OPTIONS: -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompactObjectHeaders
|
||||
openjdk version "21.0.13.1" 2026-11-17 LTS
|
||||
=== 25 image with the flag set through JDK_JAVA_OPTIONS
|
||||
NOTE: Picked up JDK_JAVA_OPTIONS: -XX:+UseCompactObjectHeaders
|
||||
UseCompactObjectHeaders = true
|
||||
Reference in New Issue
Block a user