United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6794582 javadoc should read files using a FileManager
6794582 : javadoc should read files using a FileManager

Details
Type:
Enhancement
Submit Date:
2009-01-16
Status:
Closed
Updated Date:
2011-07-15
Project Name:
JDK
Resolved Date:
2011-07-15
Component:
tools
OS:
generic,windows_xp
Sub-Component:
javadoc(tool)
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7

Related Reports
Backport:
Duplicate:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
javadoc should read files using a FileManager, instead of directly using the File API.

                                    

Comments
EVALUATION

Yes.

For the most part, this is reasonably easy.  There is only one problem case, in ClassDocImpl, where javadoc currently looks for the package doc in package doc in the same directory as the class' source file.

The right way to do this in JSR 199 is to look for the package file on the source path.
The old way is problematic for a general file manager.

the fix is to try looking on the source path, and if not found, and if its a standard file manager, to roll over to the old behavior using direct access to the file system.
                                     
2009-01-16



Hardware and Software, Engineered to Work Together