Details
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.
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.