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

[lworld] test HiddenClassSigTest.java fails

    Details

    • Subcomponent:
      svc

      Description

      The test fails here in libHiddenClassSigTest.cpp, because JVM internal interface java.lang.IdentityObject is included in the list of interfaces returned by jvmti->GetImplementedInterfaces(). So, the value of 'count' is 2, instead of the expected 1.

        // check that hidden class implements just one interface
        err = jvmti->GetImplementedInterfaces(klass, &count, &interfaces);
        CHECK_JVMTI_ERROR(jni, err, "check_hidden_class_impl_interf: Error in JVMTI GetImplementedInterfaces");
        if (count != 1) {
          LOG1("check_hidden_class_impl_interf: FAIL: implemented interfaces count: %d, expected to be 1\n", count);


      Contents of failing test log:

      ### Native agent: check_hidden_class started: class: LP/Q/HiddenClassSig.0x0000000800c7c440;
      check_class_signature: class with sig: LP/Q/HiddenClassSig.0x0000000800c7c440;
      check_class_signature: class with gsig: <T:Ljava/lang/Object;>Ljava/lang/Object;LP/Q/HCInterf<TT;>;
      check_hidden_class_flags: hidden class modifiers: 0x20
      check_hidden_class_loader: not found hidden class in its loader classes as expected
      check_hidden_class_impl_interf: FAIL: implemented interfaces count: 2, expected to be 1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fparain Frederic Parain
                Reporter:
                hseigel Harold Seigel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: