FULL PRODUCT VERSION :
1.5.0_04 and 6.0_48
ADDITIONAL OS VERSION INFORMATION :
Windows XP
A DESCRIPTION OF THE PROBLEM :
On running the Javadoc command using 1.5.0 or 6.0, the javadoc command terminates with a IllegalArgumentException. This can be rectified by clearing the classpath and trying again. It does not show up using 1.4.2_08.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the command javadoc "source name" against any source file
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Documentation generated
ACTUAL -
java.lang.IllegalArgumentException is thrown
ERROR MESSAGES/STACK TRACES THAT OCCUR :
The stack trace is given below -
Loading source file test.java...
Constructing Javadoc information...
Standard Doclet version 1.5.0_04
Building tree for all the packages and classes...
Generating test.html...
java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:183)
at sun.misc.URLClassPath$FileLoader.<init>(URLClassPath.java:863)
at sun.misc.URLClassPath$3.run(URLClassPath.java:319)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Clear the classpath and try again.