I am using javadoc (ant task) to generate javadoc of my source files. I have set the source and the ant's magic property for java and javac to 1.5 but still the generics are not included in the final javadoc. However if I generate the javadoc through my IDE, the generics are included.