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

Add test that invokeinterface of a protected method in java.lang.Object throws NoSuchMethodError

XMLWordPrintable

    • b12

      Add a test that checks that invokeinterface of protected methods java.lang.Object.clone() and java.lang.Object.finalize() throws NoSuchMethodError exception as described by the JVM Spec:

      Section 5.4.3.4 Interface Method Resolution
                      ...
      Otherwise, if the class Object declares a method with the name and descriptor specified by the interface method reference, which has its ACC_PUBLIC flag set and does not have its ACC_STATIC flag set, method lookup succeeds.
                      ...
      The result of interface method resolution is determined as follows:

      If method lookup failed, interface method resolution throws a NoSuchMethodError.

            hseigel Harold Seigel (Inactive)
            hseigel Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: