ClassFileTransformer does not apply to anonymous classes
rafael.wth at gmail.com
Fri Jan 22 15:16:39 UTC 2016
You are right. It is observed for all JDK8u releases and persists in
the current builds of JDK9.
Best regards, Rafael
2016-01-22 16:15 GMT+01:00 Daniel D. Daugherty <daniel.daugherty at oracle.com>:
> On 1/22/16 7:29 AM, Alan Bateman wrote:
>> On 22/01/2016 14:00, Coleen Phillimore wrote:
>>> Can you send the question again? I didn't see it. I also mostly look at
>>> JVM code and rarely deal with the Java side.
>> The question was asked about ClassFileTransformer which is implemented by
>> the JPLIS agent via the JVM TI CFLH event. So I think the question is really
>> on whether this event can be posted for classes defined via
>> defineAnonymousClass. None of the standard APIs know about HotSpot specific
>> concepts like "host class" but maybe the host class defining loader and PD
>> can be used with this event. I don't know if this has been explored
>> elsewhere already.
> Sounds like defineAnonymousClass() is somehow by-passing the placement
> of the CFLH event poster.
> I don't see any information here about which JDK version this issue
> is being seen with. I suspect JDK8u, but that's just a guess...
More information about the core-libs-dev