From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Green To: java@gcc.gnu.org Cc: rhug-rhats@sources.redhat.com Subject: File.toURL() problem Date: Mon, 10 Sep 2001 22:37:00 -0000 Message-id: <200109110537.WAA17014@fencer.cygnus.com> X-SW-Source: 2001-09/msg00022.html 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