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

add new JVM TI and JDI tests for classes loaded by Class::forName

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      svc

      Description

      Serguei has verified that the patch for JDK-8212117 has resolved JDK-8181144.

      New tests should be added to verify JVM TI and JDI behavior w.r.t. Class.forName("Foo", false, loader) returning a class that is linked. For example:

      1. JVM TI GetLoadedClasses should include "Foo" with and without the fix.
      2. JVM TI GetClassStatus returns CLASS_PREPARE on "Foo" with the fix. ClassPrepare event is also generated.
      3. JDK VirtualMachine::allClasses includes "Foo" with the fix.
      4. ReferenceType::isPrepared return true on "Foo" class with the fix.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: