Community
Participate
Working Groups
Here is a piece of code that works with javac but throw an error in eclipse (3.1M6) public class Test { public abstract class Context <N extends Number> { private Strategy < N , ? super Context<N> > strategy; public void setStrategy(Strategy < N , ? super Context<N> > strategy) { this.strategy = strategy; } // méthode qui utilise la stratégie public N call() throws Exception { return this.strategy.call(this); } } public interface Strategy < N extends Number , C extends Context<N> > { public abstract N call(C context); } } The error is thrown at each line (two in fact) with the super keyword : Bound mismatch: The type ? super Test.Context<N> is not a valid substitute for the bounded parameter <C extends Test.Context<N>> of the type Test.Strategy<N,C>
Created attachment 20289 [details] the Test class
Added GenericTypeTest#test629. Works fine in latest. Likely a dup of bug 81831