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

JVMTI Spec: can_redefine_any_class capability spec is inconsistent

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 13
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b23

      Description

      The spec of the "can_redefine_any_class" tells:
        "Can modify (retransform or redefine) any modifiable class. See IsModifiableClass."

      Should it also say the following: " (can_redefine_classes must also be set)" ?

      The relationship between the two capabilities is not clear.
      As the "can_redefine_any_class" spec tells: "Can modify (retransform or redefine)..."
      which means that it allows both to REDEFINE and to RETRANSFORM any class.

      Then there can be a confusion on how to understand the capability "can_retransform_any_class".
      So that the spec might need some clarification.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sspitsyn Serguei Spitsyn
              Reporter:
              sspitsyn Serguei Spitsyn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: