JDK-6430256 : removing native method wrapper via retransformation fails
Type:Bug
Component:hotspot
Sub-Component:jvmti
Affected Version:6
Priority:P2
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2006-05-25
Updated:2011-02-16
Resolved:2006-06-07
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
When native method prefixing is applied via retransformation. then it is undone via retransformation, the wrappers are not removed.
Comments
EVALUATION
Initial version of a class was only cached on load and redefine, not retransformation.
Code was in place to reset the native method on applying the wrapper, but not for transferring it back on removal.