Fix javadoc issues

The ant build fails in java 1.8, due to changes in the way javadoc is processed. This pull request stops the build from failing.