Details
-
Bug
-
Resolution: Fixed
-
P3
-
None
Description
Compiler crashes with java.lang.NullPointerException.
@FunctionalInterface
interface Baz extends Foo<Integer, Integer> {}
interface Foo<T, N extends Number> {
void m(T arg);
void m(N arg);
}
Works fine without @FunctionalInterface.
JCK test that fails: lang/LMBD/lmbd045/lmbd04501md/lmbd04501md.html
@FunctionalInterface
interface Baz extends Foo<Integer, Integer> {}
interface Foo<T, N extends Number> {
void m(T arg);
void m(N arg);
}
Works fine without @FunctionalInterface.
JCK test that fails: lang/LMBD/lmbd045/lmbd04501md/lmbd04501md.html
Attachments
Issue Links
- duplicates
-
JDK-8007933 Functional Interface case from lambda spec crashes javac
- Closed