Enhanced Class Redefinition JEP
Yuri Gaevsky
yuri.gaevsky at oracle.com
Mon Aug 1 02:26:32 PDT 2011
Hi Thomas,
Please note that the similar changes should also be done for:
http://download.oracle.com/javase/7/docs/platform/jpda/jdwp/jdwp-protocol.html#JDWP_VirtualMachine_RedefineClasses
Best regards,
-Yuri
On 29.07.2011 0:40, Thomas Wuerthinger wrote:
> On 7/28/2011 7:37 AM, Alan Bateman wrote:
>> Thomas - this looks very good work. A minor comment on the description is that you mention that it does not modify any
>> Java APIs but I assume there is an opportunity to relax the restrictions specified in Instrumentation's
>> redefineClasses and retransformClasses as specify the same restrictions as JVMTI today.
> Yes, thanks for pointing that out. In the description of those methods, there are the following sentences:
>
> "The redefinition must not add, remove or rename fields or methods, change the signatures of methods, or change
> inheritance. These restrictions maybe be lifted in future versions."
>
> Those sentences should be changed to only refer to the remaining restriction of removing supertypes. Also, the
> implementation of the method "canUnrestrictedlyRedefineClasses" of the interface "com.sun.jdi.VirtualMachine" should be
> changed to return true. There is however no need to add an additional method or change the signature of an existing
> method in the JDI, JVMTI, or instrumentation API.
>
> Regards,
> Thomas Wuerthinger
More information about the hotspot-dev
mailing list