Bug 46731 - Javadoc creation crashes on Sun JDK 1.4.x with NullPointerException in ValueTaglet
Summary: Javadoc creation crashes on Sun JDK 1.4.x with NullPointerException in ValueT...
Alias: None
Product: Ant
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 1.7.1
Hardware: PC All
: P2 minor (vote)
Target Milestone: 1.8.0
Assignee: Ant Notifications List
URL: https://bugs.gentoo.org/show_bug.cgi?...
Keywords: PatchAvailable
Depends on:
Reported: 2009-02-18 11:30 UTC by Martin von Gagern
Modified: 2009-05-18 05:10 UTC (History)
0 users

Switch lines, failonerror (1.98 KB, patch)
2009-02-18 11:30 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2009-02-18 11:30:53 UTC
Created attachment 23277 [details]
Switch lines, failonerror

Building the API reference from source using the Sun JDK 1.4.2_19, javadoc crashes with a NullPointerException in ValueTaglet. As the build script does not fail on javadoc errors, an automated build process is likely to deliver an incomplete API reference. This is especially annoying as there is no API on the official Ant home page.

The cause seems to be that src/main/org/apache/tools/ant/MagicNames.java contains a few doc comments which have @since before @value. Switching those lines solves the problem. The offending lines were introduced by r393282 and r405523.

The attached patch solves the issue. It also adds failonerror to the javadoc tasks in the main build.xml file.
Comment 1 Stefan Bodewig 2009-05-18 05:10:29 UTC
patch comitted as svn revision 775914