Not recognize enhancements in JDK 5 -generic Example: private Vector<MyClass> myvector; ^^^^^^^^^ -Enhanced for Loop Example: for (MyClass p : myvector) { ^
Did you specify source="1.5" ?
Do you mean that you cannot compile classes using the javac task when the source code contains JDK 1.5 features? 1) did you use the source attribute of the javac task? 2) Does your JAVA_HOME environment variable contain the directory jdk1.5 is installed in?
Created attachment 15189 [details] It's example class about generic problem in Java 1.5 Run ant tu build javadoc.
After setting JAVA_HOME to jdk 1.5 the test worked without any problems.
Adding JAVA_HOME resolve partial problem. Another problem is with setting classpath for javadoc. Solutions: delete CLASSPATH from environments. Links about that: http://forum.java.sun.com/thread.jspa?threadID=551665&tstart=45 http://forum.java.sun.com/thread.jspa?threadID=567807&tstart=75