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.

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

Reply via email to