-
Bug
-
Resolution: Unresolved
-
P4
-
repo-valhalla
Recent fix for JDK-8359370 introduced a minor bug. This code should be accepted by javac:
class SuperClass<T> {
public SuperClass(Object o) {}
}
class Sub<T> extends SuperClass<T> {
public Sub() {
super(new Object() {
void foo() {
getClass();
}
});
}
}
but it is currently rejected as the getClass invocation is considered to be an invocation of an instance method of class Sub
class SuperClass<T> {
public SuperClass(Object o) {}
}
class Sub<T> extends SuperClass<T> {
public Sub() {
super(new Object() {
void foo() {
getClass();
}
});
}
}
but it is currently rejected as the getClass invocation is considered to be an invocation of an instance method of class Sub
- links to
-
Review(lworld) openjdk/valhalla/1567