-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
None
-
Affects Version/s: 8
-
Component/s: tools
This should NOT compile:
import java.util.List;
interface A { <T> T foo(List<T> p); }
interface B { <S> S foo(List<S> p); }
interface C extends A, B {}
class Z {
C c = (p) -> { return null;}; // accepted
}
import java.util.List;
interface A { <T> T foo(List<T> p); }
interface B { <S> S foo(List<S> p); }
interface C extends A, B {}
class Z {
C c = (p) -> { return null;}; // accepted
}
- duplicates
-
JDK-8008444 Inherited generic functional descriptors are merged incorrectly
-
- Resolved
-