-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
8
This code:
class Test {
class K<T> {}
<P extends K<P>> void f(String s) {
P p = foo(s);
}
<U extends K<U>> U foo(String s) {
return null;
}
}
compiles with javac7 and javac8 but not with javac8 source 7
reported in compiler-dev: http://mail.openjdk.java.net/pipermail/compiler-dev/2014-February/008519.html
class Test {
class K<T> {}
<P extends K<P>> void f(String s) {
P p = foo(s);
}
<U extends K<U>> U foo(String s) {
return null;
}
}
compiles with javac7 and javac8 but not with javac8 source 7
reported in compiler-dev: http://mail.openjdk.java.net/pipermail/compiler-dev/2014-February/008519.html
- duplicates
-
JDK-8078249 Inference regression with JDK 8 and -source 7
- Closed
- relates to
-
JDK-8054937 5.1.10: Fresh capture variables sometimes can't conform to bounds
- Open