Incompatible types error with ANT build, compiles fine with MyEclipse
The code below compiles fine with MyEclipse but does not compile for Ant with incompatible types error.
incompatible types; inferred type argument(s) ? do not conform to bounds of type variable(s)
[javac] found: <T>com.allabouttravel.booking.inetdet.model.Inetdet.BookingGroupsIterator<T>
[javac] required: java.util.Iterator<?>
[javac] Iterator<?> groups = getBookingGroupsIterator();
[
The iterator signature is
public <Textends BookingGroup> BookingGroupsIterator<T> getBookingGroupsIterator()
Versions:
Eclipse 3.1.0
MyEclipse 3.9.2
Apache Ant 1.6.5
javac 1.5.0_03
Windows NT
Any ideas how the code compiles with MyEclipse but not Ant when it seems they're both using the same JDK 1.5? Is there a javac 1.5 option to disable this error check?

