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

jcmd cannot rely on the old core reflection implementation which will be changed after JEP 416

    XMLWordPrintable

    Details

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

      Description

      jcmd VM.metaspace and VM.classloaders and VM.class_hierarchy implementation relies on the internals of the old core reflection implementation to find out the class name of the target reflected member.

      It will no longer work with the new core reflection implementation by JEP 416.

      test/hotspot/jtreg/serviceability/dcmd/vm/ShowReflectionTargetTest.java is temporarily changed to run with the old core reflection. This test should be changed to take out ` -Djdk.reflect.useDirectMethodHandle=false` to run with the new implementation.

        Attachments

        1. failed-stdout.txt
          100 kB
        2. stdout-org.txt
          99 kB
        3. stdout-with-prop.txt
          99 kB

          Issue Links

            Activity

              People

              Assignee:
              stuefe Thomas Stuefe
              Reporter:
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: