Bug#306371: NPE building lucene javadocs
ms419@freezone.co.uk, 306371@bugs.debian.org
ms419@freezone.co.uk, 306371@bugs.debian.org
Wed Apr 27 05:55:02 2005
On Apr 26, 2005, at 5:52 AM, Julian Scheid wrote:
> Firstly, gjdoc wasn't properly checking for URL.openStream() returning
> null. This is fixed in cvs head now. If you try again with head, you
> should get a warning message like "Cannot fetch package list from
> http://java.sun.com/j2se/1.4/docs/api/".
Way cool! This works like a charm - after rebuilding gjdoc from cvs
head, I'm looking at beautiful gjdoc lucene api documentation! Thanks!
> Secondly, the current Classpath implementation of URL.openStream() is
> buggy: for the URL above, which redirects to .../j2se/1.4.2/... using
> a 302 (Moved Temporarily) HTTP response code, the redirection isn't
> followed but instead a null stream is returned. And for non-existing
> URLs it returns a stream instead of raising a FileNotFoundException.
>
> I've filed a corresponding bug report which already has been partly
> acted upon:
> https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=12815
Thanks for addressing this!
> As a temporary workaround until these bugs are fixed in the kaffe
> debian package, you may want to change the URL in line 29 in lucene's
> top-level build.xml to read "http://java.sun.com/j2se/1.4.2/docs/api/"
> - or, even better, "http://developer.classpath.org/doc/" :-)
Good suggestion : )
Seriously, thanks for your super fast response to this problem - & all
your work on gjdoc - I like it a lot!
Jack