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

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 18
    • 18
    • hotspot
    • None
    • svc
    • b23

      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.

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

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

              Created:
              Updated:
              Resolved: