Bug 82218 - fails to doc spacewar using AJDT 1.2.0M2
Summary: fails to doc spacewar using AJDT 1.2.0M2
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: AJDoc (show other bugs)
Version: 1.2.1 M1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-05 04:49 EST by Wes Isberg CLA
Modified: 2005-01-12 23:27 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wes Isberg CLA 2005-01-05 04:49:41 EST
Using AJDT 1.2.0M2 {with Java 5 JRE on XP SP2}, install Spacewar example and
generate to Spacewar/docs.  
Result: output has no cross-references (and displays special AJDT tags), and
stderr lists this exception:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.AbstractStringBuilder.insert(AbstractStringBuilder.java:980)
	at java.lang.StringBuffer.insert(StringBuffer.java:447)
	at
org.aspectj.tools.ajdoc.HtmlDecorator.insertDeclarationsDetails(HtmlDecorator.java:350)
	at
org.aspectj.tools.ajdoc.HtmlDecorator.addAspectDocumentation(HtmlDecorator.java:234)
	at org.aspectj.tools.ajdoc.HtmlDecorator.decorateHTMLFile(HtmlDecorator.java:188)
	at
org.aspectj.tools.ajdoc.HtmlDecorator.decorateHTMLFromDecl(HtmlDecorator.java:116)
	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 2005-01-12 23:27:39 EST
Fix committed to CVS.

The problem was that ajdoc wasn ot parsing the HTML files generated by Javadoc 
in the 1.5 JDK properly.  I've updated it to support JDKs up to 1.5, so it's 
successfully generating all documentation now.  However, there seem to be some 
classes missing from the "all classes" listing when running on 1.5, so I added 
bug#82730 for that.