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

    Details

    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: