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?

[964 byte] By [javvvaa] at [2007-9-23]
# 1
I forget if it is a build.properties entry or a javac task entry. However, you should be able to specify which compiler version you want to use and where the instance of javac is located. Check the Apache Ant manual.- Saish
Saisha at 2007-7-13 > top of java,Developer Tools,Java Compiler...