Enhanced Class Redefinition JEP
Thomas Wuerthinger
thomas.wuerthinger at oracle.com
Thu Jul 28 13:40:57 PDT 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20110728/3740aa76/attachment.html
More information about the hotspot-dev
mailing list