Ant isn't doing the compiling, whatever compiler you have configured is.
Looks like it is a difference between java 5 & 6.
Sometimes the only way things ever got fixed is because people became uncomfortable.
Sun Certified Programmer for the Java 2 Platform
Ulf Dittmer wrote:Interestingly, this change from Java 5 to Java 6 apparently wasn't documented anywhere: http://blogs.sun.com/ahe/entry/override_snafu thus taking many people (including myself :-) by surprise.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Anil Sahu wrote:Thanks everyone for posting the solution. It all worked fine when I pointed Java to 6 instead of 5.
![]()