Bytecode Instrumentation and Class Loading.
Daniel D. Daugherty
daniel.daugherty at oracle.com
Wed Sep 18 20:26:15 UTC 2019
Forwarding this to the serviceability-dev at ... alias
and Bcc'ing jdk-dev at ... which is a really broad alias...
On 9/18/19 2:47 PM, Sam Thomas wrote:
> I'm trying to understand if a class will load as soon as all the
> transformers return. The aim is to get a class reference of a class I have
> seen in my transformer.
> I'm currently using Class.forName().
> Also if there is way to get the same without triggering class loading - if
> the class is not loaded return a null reference. I ask this because there
> is a scenario where there are two agents on JBoss where one asks for the
> class reference using Class.forName() and the other went and performed a
> redefineClass() on it and I end up getting a Failed to define class.
More information about the jdk-dev