United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6331574 java.lang.instrument: Add isModifiableClass to test if class be redefined/retransformed
6331574 : java.lang.instrument: Add isModifiableClass to test if class be redefined/retransformed

Details
Type:
Enhancement
Submit Date:
2005-10-01
Status:
Resolved
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2005-12-03
Component:
core-svc
OS:
generic
Sub-Component:
tools
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
6

Related Reports
Relates:
Relates:

Sub Tasks

Description
This is the java.lang.instrument equivalent of 6306942.

java.lang.instrument needs a function to test if a class is modifiable with retransformClasses or redefineClasses. This will allow an agent to build a list of modifable classes to pass. Currently if any of the classes in the list is not modifiable the retransform (or redefine) will return an error. 

This is partically important in cases where isRetransformClassesSupported() / isRedefineClassesSupported() is true but some classes can not be retransformed/redefined (eg: in our implementation where a late-binding agent is loaded into a VM with class data sharing enabled - in that case we can only retransform/redefine shared that aren't shared).

                                    

Comments
EVALUATION

See description
                                     
2005-10-01



Hardware and Software, Engineered to Work Together