Bug 69011 - ajdoc fails when using default package
Summary: ajdoc fails when using default package
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: AJDoc (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 1.2.1   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-30 10:22 EDT by Luzius Meisser CLA
Modified: 2004-10-21 04:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luzius Meisser CLA 2004-06-30 10:22:51 EDT
When trying to document classes that are in the default package, the following 
error occurs:

> Calling ajc...
> Building signature files...
> Calling javadoc...
Loading source file C:\eclipse_RC3\eclipse\ajdocworkingdir\A.java...
C:\eclipse_RC3\eclipse\ajdocworkingdir\A.java:1: <identifier> expected
package ;
        ^
1 error
> Decorating html files...
> Decorating C:\doc\classX.html...
An internal error occured in ajdoc
Please copy the following text into an email message and send it,
along with any additional information you can add to:            
                                                                 
       aspectj-dev@eclipse.org                           
                                                                 

java.io.FileNotFoundException: C:\doc\classX.html (The system cannot find the 
file specified)
java.io.FileNotFoundException: C:\doc\classX.html (The system cannot find the 
file specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at java.io.FileReader.<init>(FileReader.java:55)
	at org.aspectj.tools.ajdoc.HtmlDecorator.decorateHTMLFile
(HtmlDecorator.java:142)
	at org.aspectj.tools.ajdoc.HtmlDecorator.decorateHTMLFromDecl
(HtmlDecorator.java:115)
	at org.aspectj.tools.ajdoc.HtmlDecorator.decorateHTMLFromDecls
(HtmlDecorator.java:54)
	at org.aspectj.tools.ajdoc.HtmlDecorator.decorateHTMLFromInputFiles
(HtmlDecorator.java:43)
	at org.aspectj.tools.ajdoc.Main.main(Main.java:210)
Comment 1 Mik Kersten CLA 2004-07-05 14:16:48 EDT
Fixed.  The problem was in the generation of the stub files, which created an 
improper package declaration for compilation units in the default package.

org.aspectj.tools.ajdoc/CoverageTestCase.java has been expanded to test for 
this.
Comment 2 Adrian Colyer CLA 2004-10-21 04:31:15 EDT
Fix released as part of AspectJ 1.2.1