Specification of handling of absent annotations at runtime

Björn Kautler Bjoern at kautler.net
Mon Oct 7 14:45:16 UTC 2024


Hi

Is there somewhere some definition how a JRE has to handle absent
annotation classes at runtime?
All JREs I know just skip annotations if their class is not present at
runtime.
But as far as I have seen neither the JLS nor the JVMS define how the
situation has to be handled.
Can anyone tell me, whether there is some specification or JCK rule or
similar that definitely defines that this is the way how absent annotation
classes have to be handled?

Cheers
Björn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jdk-dev/attachments/20241007/f10aaceb/attachment.htm>


More information about the jdk-dev mailing list