[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-serviceability-dev
Subject: Re: Status of JEP159?
From: David Holmes <david.holmes () oracle ! com>
Date: 2017-10-16 21:47:38
Message-ID: e481abfe-88a9-2afc-7267-68342f31b3d0 () oracle ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic