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

duke duke at openjdk.org
Fri Nov 21 08:22:17 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

@Delawen 
Your change (at version f6a4af8c66a9e0b70141f19b1ec9ed85179fb12b) is now ready to be sponsored by a Committer.

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

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


More information about the hotspot-runtime-dev mailing list