This bug tracks the SDK changes needed to java.lang.instrument to correspond to the JVMTI changes in 4988776.
These changes are:
Add UnmodifiableClassException thrown by Instrumentation.redefineClasses
Where UnmodifiableClassException is a basic exception with the comment:
"Thrown by an implementation of Instrumentation.redefineClasses when one of the specified classes cannot be modified."
--------
The three JVMTI agents in the SDK (instrument, hprof and the JPDA back-end) will need to be adjusted in very minor ways to use the new capabilities to control their interactions with class sharing.