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

    • Enhancement
    • Resolution: Fixed
    • P3
    • 18
    • 18
    • hotspot
    • None
    • svc
    • 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
          Calvin Cheung
        2. stdout-org.txt
          99 kB
          Calvin Cheung
        3. stdout-with-prop.txt
          99 kB
          Calvin Cheung

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: