Community
Participate
Working Groups
Compile error in Eclipse, compiles fine from Javac (1.5). Error:: Severity Description Resource In Folder Location Creation Time 2 Bound mismatch: The type Foo is not a valid substitute for the bounded parameter <T extends Composite<T>> of the type Composite<T> Composite.java Tiger/Samples line 18 August 18, 2004 3:42:20 PM Code:: /* * Created on Aug 18, 2004 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package Samples; import java.util.*; class Composite<T extends Composite<T>> implements java.lang.Iterable<T> { public Iterator<T> iterator() { return null; // todo implement } } // Eclipse error here.. class Foo extends Composite<Foo> { Iterator<Foo> i = iterator(); }
Update title according to bug description
Not sure which build you were using but this is fixed with the latest changes in HEAD.