RFR: 8372253: Improve logging to show why a class was excluded from AOT Cache

Ioi Lam iklam at openjdk.org
Fri Nov 21 17:21:56 UTC 2025


On Thu, 20 Nov 2025 09:20:11 GMT, María Arias de Reyna Domínguez <duke at openjdk.org> wrote:

> 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

I think we don't need the test in this PR.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28413#issuecomment-3563959822


More information about the hotspot-runtime-dev mailing list