This is the mail archive of the
rhug-rhats@sources.redhat.com
mailing list for the RHUG project.
Re: File.toURL() problem
- To: green at cygnus dot com
- Subject: Re: File.toURL() problem
- From: Tom Tromey <tromey at redhat dot com>
- Date: 11 Sep 2001 18:35:49 -0600
- Cc: java at gcc dot gnu dot org, rhug-rhats at sources dot redhat dot com
- References: <200109110537.WAA17014@fencer.cygnus.com>
- Reply-To: tromey at redhat dot com
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
Anthony> xsltc contains
Anthony> (new File(stylesheetName)).toURL()
Anthony> which for the JDK returns "file:myname", but for gcj returns
Anthony> "file:/myname".
The online docs say the return value is system-dependent.
However I think they mean OS-dependent and not VM implementation.
My JDK 1.2 installation returns `file:/tmp/myname' (when run in /tmp).
Classpath looks like it would return `file:///tmp/myname'.
Sigh. `file:' URLs suck, since everybody gets confused about leading
`/'s.
Anyway, I agree we have a bug. The URL we return is clearly not
correct. I've added this to my (stunningly long) to-do list.
Tom