Add migration-17-25 module: Java 17 class files run on 17 and 25, flags, removed APIs, jdeps and jdeprscan

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gth99spB1CzQmBFofXmU4Z
This commit is contained in:
Claude
2026-09-28 08:42:19 +00:00
parent 814c32b5ce
commit 57a04dc393
20 changed files with 304 additions and 0 deletions
@@ -0,0 +1,33 @@
# 01-runtime-behaviour: classes compiled once with JDK 17 (--release 17), run unchanged on 17 and 25; LC_ALL=C
--- SecurityManagerProbe
[17.0.20.1] WARNING: A terminally deprecated method in java.lang.System has been called
[17.0.20.1] WARNING: System::setSecurityManager has been called by SecurityManagerProbe (file:/tmp/migration-17-25-work/c17/)
[17.0.20.1] WARNING: Please consider reporting this to the maintainers of SecurityManagerProbe
[17.0.20.1] WARNING: System::setSecurityManager will be removed in a future release
[17.0.20.1] installed: true
[25.0.4.1] failed: java.lang.UnsupportedOperationException: Setting a Security Manager is not supported
--- ThreadStopProbe
[17.0.20.1] stop() accepted; thread alive afterwards: false
[25.0.4.1] stop() failed: java.lang.UnsupportedOperationException
--- CharsetProbe
[17.0.20.1] Charset.defaultCharset() = US-ASCII
[17.0.20.1] bytes written for the 4-letter word with an accent = 4 (UTF-8 would be 5)
[25.0.4.1] Charset.defaultCharset() = UTF-8
[25.0.4.1] bytes written for the 4-letter word with an accent = 5 (UTF-8 would be 5)
--- FinalizerProbe
[17.0.20.1] finalize() ran: true
[25.0.4.1] finalize() ran: true
--- UnsafeProbe
[17.0.20.1] read back: 42
[25.0.4.1] WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
[25.0.4.1] WARNING: sun.misc.Unsafe::allocateMemory has been called by UnsafeProbe (file:/tmp/migration-17-25-work/c17/)
[25.0.4.1] WARNING: Please consider reporting this to the maintainers of class UnsafeProbe
[25.0.4.1] WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
[25.0.4.1] read back: 42
--- SecurityManagerProbe with -Djava.security.manager=allow
[17.0.20.1] WARNING: A terminally deprecated method in java.lang.System has been called
[17.0.20.1] WARNING: System::setSecurityManager has been called by SecurityManagerProbe (file:/tmp/migration-17-25-work/c17/)
[17.0.20.1] WARNING: Please consider reporting this to the maintainers of SecurityManagerProbe
[25.0.4.1] Error occurred during initialization of VM
[25.0.4.1] java.lang.Error: A command line option has attempted to allow or enable the Security Manager. Enabling a Security Manager is not supported.
[25.0.4.1] at java.lang.System.initPhase3([email protected]/System.java:1970)