Bug 24509 - gjdoc is not able to use the javadocs from java.sun.com
Summary: gjdoc is not able to use the javadocs from java.sun.com
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: gjdoc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Julian Scheid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-24 21:41 UTC by Stephan Michels
Modified: 2005-10-25 16:20 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Simple test class (110 bytes, text/plain)
2005-10-24 21:43 UTC, Stephan Michels
Details
Simple fix for the problemby adding a try/catch block. (523 bytes, patch)
2005-10-24 21:45 UTC, Stephan Michels
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Michels 2005-10-24 21:41:41 UTC
Hi,
I have problems to use the link argument with the javadocs from java.sun.com.
It seems that a FileNotFoundException wasn't caught for fetching "gjdoc.compat".
Comment 1 Stephan Michels 2005-10-24 21:43:45 UTC
Created attachment 10052 [details]
Simple test class

You can verify the problem with 
"gjdoc -link http://java.sun.com/j2se/1.4/docs/api Test.java"
gjdoc throw a warning like "WARNING: Cannot fetch package list from null"
Comment 2 Stephan Michels 2005-10-24 21:45:18 UTC
Created attachment 10053 [details]
Simple fix for the problemby adding a try/catch block.
Comment 3 Julian Scheid 2005-10-25 16:20:55 UTC
Your patch looks good, committed.

Thanks, Stephan.
Comment 4 cvs-commit@developer.classpath.org 2005-10-25 16:48:51 UTC
Subject: Bug 24509

CVSROOT:	/cvsroot/classpath
Module name:	gjdoc
Branch: 	
Changes by:	Julian Scheid <julian@savannah.gnu.org>	05/10/25 16:20:44

Modified files:
	src/gnu/classpath/tools/doclets/htmldoclet: ExternalDocSet.java 
	.              : ChangeLog 

Log message:
	2005-10-25  Stephan Michels  <stephan@apache.org>
	
	PR gjdoc/24509:
	* src/gnu/classpath/tools/doclets/htmldoclet/ExternalDocSet.java:
	Intercept FileNotFoundException so that a missing 'gjdoc.compat'
	file doesn't break linking to javadoc-generated documentation.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/gjdoc/src/gnu/classpath/tools/doclets/htmldoclet/ExternalDocSet.java.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/gjdoc/ChangeLog.diff?tr1=1.237&tr2=1.238&r1=text&r2=text



_______________________________________________
Cp-tools-commit mailing list
Cp-tools-commit@gnu.org
http://lists.gnu.org/mailman/listinfo/cp-tools-commit