Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4434834
Votes 0
Synopsis javadoc tool: non .java filenames are taken by default as package names.
Category java:javadoctool
Reported Against merlin-beta
Release Fixed 1.4.1(hopper)
State 10-Fix Delivered, Verified, bug
Priority: 5-Very Low
Related Bugs
Submit Date 06-APR-2001
Description
..The new javadoc correctly does not allow non ".java" files as they were in old Javadoc. Any file with non ".java" extension is rejected. But the error message needs more clarity. Please find the command and the message attached below.
==============================================================================
blr-sunray:/home/vr128054/jdk-latest/jdk1.4.0/src/javax/swing 654 % java   -Dfile.encoding=EUC-JP   -Xbootclasspath/p:/home/vr128054/gj/gjclasses3   -classpath /home/vr128054/gj/gjclasses3   com.sun.tools.javadoc.Main JPanel.xxx
Loading source files for package JPanel.xxx...
javadoc: No source files for package JPanel/xxx 
1 error
================================================================================
While it is perfectly valid to reject .xxx extension, by default, a "." shouldnt
be considered a package name delimiter. A filename level error message could be more informative.
Work Around
N/A
Evaluation
On the contrary: the "." IS the package delimiter.  We only
make a special case of handling ".java" to treat it as a file name.

However, in a command such as
	javadoc a/b.c
where a/b.c could neither be a valid source file name nor a package name, we
should just say so.

 xxxxx@xxxxx  2001-04-11
Comments
  
  Include a link with my name & email   

Submitted On 21-SEP-2001
ofels
I dont think this is a bug. 
Anything else but .java files should not be given to the 
javadoc command. I feel there are rare occasions where 
this might appropriate, but a foo.xjava file is not 
correctly treated by the compiler anyway.
This new "feature" now leads to errors if the last package 
in the tree is named java, like com.foo.bar.java
Now, javadoc looks for a file called com/foo/bar.java and 
fails.



PLEASE NOTE: JDK6 is formerly known as Project Mustang