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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • 14
    • None
    • hotspot
    • svc

      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.

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

              Created:
              Updated:
              Resolved: