1.4 errors

Using Javadoc from the SDK1.4 rc-1, I run into a problem when trying to create documentation on a directory that exists twice in my classpath. As an example:

CLASSPATH=.;D:\Computer\JavaPrograms

If I go to directory D:\Computer\JavaPrograms and run javadoc:

javadoc -d .\docs jtools.exception

I get errors throughout my code based on "duplicate class" messages, similar to:

"

D:\Computer\JavaPrograms\jtools\exception\ParameterOutOfBoundsException.java:25: duplicate class: jtools.exception.ParameterOutOfBoundsException

public class ParameterOutOfBoundsException extends IOException

D:\Computer\JavaPrograms\jtools\exception\DataDoesNotExistException.java:23: duplicate class: jtools.exception.DataDoesNotExistException

public class DataDoesNotExistException extends IOException

"

There is no duplicate class, but it appears to be reading the class twice, once through the "." part of the classpath, once through the "D:\Computer\JavaPrograms" part of the classpath. As such, the javadoc does not complete.

There was no problem with this in version 1.3.x or 1.2.x, from what I recall.

The workaround is simple; remove one of the classpath elements from the classpath.

[1260 byte] By [jre95001] at [2007-9-26 20:17:26]
# 1
I apologize... I did have a more descriptive subject header, but the quotes I used appers to have cut the rest of the subject line from the subject.The full subject line was supposed to read:1.4 errors "duplicate class" when classpath contains double directory
jre95001 at 2007-7-3 18:24:31 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

Would you please submit this as a bug and put "REGRESSION"

in the synopsis? We will try to fix it for 1.4.1.

Follow these instructions for submitting a bug:

http://java.sun.com/j2se/javadoc/faq.html#submitbugs

A workaround might be to use -linkoffline instead.

If that is a true workaround, please include that info in the bug report.

-Doug Kramer

Javadoc team

dkramer at 2007-7-3 18:24:31 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...