This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

File.toURL() problem



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







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]