File.toURL() problem

Anthony Green green@redhat.com
Mon Sep 10 22:37:00 GMT 2001


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /