Package name ends in ".java" causes failure

I /think/ I've identified a bug in javadoc: javadoc will not allow module names which end in ".java". (maybe this is a feature).

It seems that javadoc should check for directory status or have some other check other than just string comparison to determine if a file should be parsed or considered to be a package.

Has anyone else encountered this?

In my source code there are several instances of packages which end in ".java" -- javadoc is unable to parse these packages & instead tries to "Load source file' when it should try to "Load source files for package..."

Example:

javadoc com.mycompany.modules.java com.mycompany.jsp

Error message:

Loading source file com.mycompany.modules.java...

error: cannot read: com.mycompany.modules.java

Loading source files for package com.mycompany.modules...

Loading source files for package com.mycompany.modules.jsp...

1 error

[949 byte] By [greva] at [2007-9-28 11:51:45]
# 1
This bug was fixed in 1.4.1: http://developer.java.sun.com/developer/bugParade/bugs/4507380.html-Doug KramerJavadoc team
dkramera at 2007-7-12 2:43:05 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...