On Mon, 25 Aug 2025 21:11:34 GMT, Dean Long <dl...@openjdk.org> wrote:

> > @dean-long `retransformClasses` is specified to to be able to throw 
> > `LinkageErrors`.
> 
> I see that in java.lang.instrument, but the JVMTI spec says "In response to 
> this call, no events other than the ClassFileLoadHook event will be sent." 
> Normally during linking we send the ClassPrepare event.

To have a Class object it must have already undergone the "preparation" part of 
linking (it is done at the end of loading when we create the class mirror).

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

PR Comment: https://git.openjdk.org/jdk/pull/26863#issuecomment-3222609397

Reply via email to