This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
File.toURL() problem
- To: java at gcc dot gnu dot org
- Subject: File.toURL() problem
- From: Anthony Green <green at redhat dot com>
- Date: Mon, 10 Sep 2001 22:37:26 -0700
- CC: rhug-rhats at sources dot redhat dot com
- Reply-to: green at cygnus dot com
One of the few local changes I had to make to Xalan is related to File.toURL().
xsltc contains
(new File(stylesheetName)).toURL()
which for the JDK returns "file:myname", but for gcj returns "file:/myname".
I worked around this problem in xsltc by using the following instead:
new URL("file", "", -1, stylesheetName)
...which appears to give the desired behaviour.
AG