|
Duplicate :
|
|
|
Duplicate :
|
|
|
Relates :
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=98379
This program doesn't compile:
public class X {
<T extends X> T f1() throws Exception{
return null;
}
<U extends X> U f2() throws Exception {
return f1();
}
}
X.java:6: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds U,X
return f1();
^
1 error
|