May 23, 2008

Java 1.5 JavaDoc bug MissingResourceException

So trying to do a build today and there were some strange javadoc gen errors like below

java.util.MissingResourceException: Can't find resource for bundle, key doclet.malformed_html_link_tag
at java.util.ResourceBundle.getObject(
at java.util.ResourceBundle.getString(
So this is a bad bug in javadoc for Java 1.5

We had a class where the javadoc looked like

* This javadoc had U2

the in the java doc make it think that it is a bad tag

Sun has bug open

The fix is using

* This javadoc had <artist>U2

hope this helps someone