Share

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 com.sun.tools.doclets.formats.html.resources.standard, key doclet.malformed_html_link_tag
at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
at java.util.ResourceBundle.getString(ResourceBundle.java:285)
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
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5082928

The fix is using


/**
* This javadoc had <artist>U2
**/


hope this helps someone