RFR: 8372253: Improve logging to show why a class was excluded form AOT Cache
María Arias de Reyna Domínguez
duke at openjdk.org
Thu Nov 20 09:28:30 UTC 2025
Fixes: https://bugs.openjdk.org/browse/JDK-8372253
When dumping the AOT Cache file, some classes throw a verification error and are excluded from the cache:
[warning][aot] Preload Warning: Verification failed for io.netty.handler.ssl.OpenSslClientContext
[warning][aot] Skipping io/netty/handler/ssl/OpenSslClientContext: Failed verification
This PR improves the log message by adding the cause of this failure:
[warning][aot] Preload Warning: Verification failed for io.netty.handler.ssl.OpenSslClientContext because a java.lang.NoClassDefFoundError was thrown: io/netty/internal/tcnative/SSLPrivateKeyMethod
-------------
Commit messages:
- JDK-8372253: Add the exception to the log message
Changes: https://git.openjdk.org/jdk/pull/28413/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28413&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8372253
Stats: 5 lines in 1 file changed: 3 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/28413.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28413/head:pull/28413
PR: https://git.openjdk.org/jdk/pull/28413
More information about the hotspot-runtime-dev
mailing list