JDK-5048018 : Doubled slashes in file names logged by 1.5 javadoc
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux_redhat_9.0
  • CPU: x86
  • Submitted: 2004-05-16
  • Updated: 2024-10-07
  • Resolved: 2018-02-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Relates :  
Relates :  
Description
It seems that as of JDK 1.5 (observed in b32d and also in later builds), the javadoc tool will insert gratuitous slashes into filenames as it prints them, resulting in an invalid filename. At least on Linux. For example, using sources from

  http://www.netbeans.org/source/browse/openide/src/

if I run

/space/jdk1.4.2_04/bin/javadoc -sourcepath /space/src/nb_all/openide/src -d /tmp/javadocout -source 1.4 org.openide org.openide.actions org.openide.awt org.openide.cookies org.openide.explorer org.openide.explorer.propertysheet org.openide.explorer.propertysheet.editors org.openide.explorer.view org.openide.filesystems org.openide.modules org.openide.nodes org.openide.options org.openide.text org.openide.util org.openide.util.actions org.openide.util.datatransfer org.openide.util.enum org.openide.util.io org.openide.util.lookup org.openide.windows org.openide.xml

then I get output with lines like the following:

Generating /tmp/javadocout/org/openide/modules/Dependency.html...

whereas in JDK 1.5.0 (b37, for example), the same line appears as:

Generating /tmp/javadocout/org/openide/modules//Dependency.html...

Note that most kinds of error output is still fine, e.g.

/space/src/nb_all/openide/src/org/openide/util/WeakListeners.java:229: warning - Tag @link: reference not found: javax.naming.event.EventContext

But messages beginning with "Generating" usually have the doubled slash. Not all, but most:

Generating /tmp/javadocout/org/openide/windows//Workspace.html...
Generating /tmp/javadocout/org/openide/windows//package-frame.html...
Generating /tmp/javadocout/org/openide/windows//package-summary.html...
Generating /tmp/javadocout/org/openide/windows//package-tree.html...
Generating /tmp/javadocout/serialized-form.html...

I guess all the messages that involve a package name are broken.
###@###.### 2004-05-16

Comments
This bug looks more like a side-effect of the bad file handling that was addressed when we introduced the DocPath/DocFiles cleanup in JDK-8001664.
12-02-2018

Superficially similar to JDK-8194893, but this bug predates the cause of that bug.
12-02-2018

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon
14-06-2004

EVALUATION Lowering from priority 3 to 4. because this bug affects only informational messages and has no ill effect on the actual files being generated. We are at RC, and are only accepting bugs that are serious. ###@###.### 2004-05-17
17-05-2004