-
Bug
-
Resolution: Fixed
-
P2
-
8
-
b09
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8035432 | 9 | Vicente Arturo Romero Zaldivar | P2 | Closed | Fixed | b06 |
JDK-8045131 | 8u25 | Vicente Arturo Romero Zaldivar | P2 | Resolved | Fixed | b01 |
JDK-8052570 | emb-8u26 | Vicente Arturo Romero Zaldivar | P2 | Resolved | Fixed | b17 |
This code:
=== base/BaseImpl.java ===
package base;
public class BaseImpl {
static void foo(Object o) {}
}
===
=== Test.java ===
class Impl extends base.BaseImpl {
public void foo(Object o) {}
}
class MyImpl extends Impl {
public void m(Object o) {
foo(o);
}
}
===
after compilation:
javac base/BaseImpl.java Test.java
fails with:
Test.java:7: error: no enclosing instance of type Impl is in scope
foo(o);
^
reported by Liam Miller-Cushon at compiler-dev: http://mail.openjdk.java.net/pipermail/compiler-dev/2014-February/008511.html
=== base/BaseImpl.java ===
package base;
public class BaseImpl {
static void foo(Object o) {}
}
===
=== Test.java ===
class Impl extends base.BaseImpl {
public void foo(Object o) {}
}
class MyImpl extends Impl {
public void m(Object o) {
foo(o);
}
}
===
after compilation:
javac base/BaseImpl.java Test.java
fails with:
Test.java:7: error: no enclosing instance of type Impl is in scope
foo(o);
^
reported by Liam Miller-Cushon at compiler-dev: http://mail.openjdk.java.net/pipermail/compiler-dev/2014-February/008511.html
- backported by
-
JDK-8045131 Incorrect inheritance of inaccessible static method
- Resolved
-
JDK-8052570 Incorrect inheritance of inaccessible static method
- Resolved
-
JDK-8035432 Incorrect inheritance of inaccessible static method
- Closed