-
Bug
-
Resolution: Unresolved
-
P4
-
8u60, 9, 21
This declaration compiles without error:
interface I1 {
default Object clone() { return this; }
}
Per JLS 9.4.1.2, an error is expected: the default method is override-equivalent with Object.clone, a non-private method of class Object.
interface I1 {
default Object clone() { return this; }
}
Per JLS 9.4.1.2, an error is expected: the default method is override-equivalent with Object.clone, a non-private method of class Object.
- duplicates
-
JDK-8155221 incorrect method resolution failure with default method overriding `clone`
-
- Closed
-
- relates to
-
JDK-8154587 Resolution fails for default method named 'clone'
-
- Resolved
-