Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5013372

JPLIS spec: redefineClasses behaviour while UnmodifiableClassException

XMLWordPrintable

    • b49
    • generic
    • generic



      Name: ooR10006 Date: 03/15/2004



      Specification of java.lang.instrument.Instrumentation in JDK1.5 b42
      (introduced by CCC 4988776: JVMTI Spec: BCI and class sharing)
      says for the method redefineClasses(ClassDefinition[] definitions):
      "Throws:
      ...
      UnmodifiableClassException - if a specified class cannot be modified"

      However, the method accepts an array of ClassDefinitions as its input
      and the specification does not describe what happens with those
      ClassDefinitions which correspond to modifiable classes - either none
      of the classes are redefined or some classes still redefined. This
      should be clarified in the specification.


      ======================================================================

            rfield Robert Field (Inactive)
            ovosunw Ovo Ovo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: