Status of JEP159?

David Holmes david.holmes at oracle.com
Mon Oct 16 21:47:38 UTC 2017


On 16/10/2017 11:21 PM, Robbin Ehn wrote:
> Hi, if you use class file load hook you can add/remove public methods.
> Since this is before the class have been published we don't know how it 
> should look.
> Whether this is according to spec or not, I have no clue.

There's no special dispensation in the spec for redefinition at CFLH 
time AFAICS, so this seems like a bug to me!

David

> Is it on CFLH ?
> 
> /Robbin
> 
> On 10/16/2017 01:20 PM, David Holmes wrote:
>> Hi Thomas,
>>
>> On 16/10/2017 8:40 PM, Thomas Stüfe wrote:
>>> Hi all,
>>>
>>> just a small question.
>>>
>>> While examining a crash in jvmti_GetClassMethods (jdk9) I noticed 
>>> that I am able to successfully add and remove methods in a redefined 
>>> class.
>>>
>>> But JEP159 is still only in "submitted" stage. Was this feature added 
>>> for another JEP?
>>
>> According to the spec, you are not allowed to add/remove methods. How 
>> did you add/remove them?
>>
>> https://docs.oracle.com/javase/9/docs/specs/jvmti.html#RedefineClasses
>>
>> David
>> -----
>>
>>> Thank you!
>>>
>>> Kind Regards, Thomas


More information about the serviceability-dev mailing list