Regression in GCJ 3.3 in parsing property files
Ranjit Mathew
rmathew@hotmail.com
Thu Feb 20 18:29:00 GMT 2003
Ranjit Mathew wrote:
>
> > > Or, I could be mistaken about all this and we would have to fix the
> > > URL parsing code. Can you find out?
> >
> >The following patch to the parseURL( ) method fixes the problem for me:
>
> Is this patch acceptable? If yes, here it is in a more
> palatable format:
Actually, I have found more problems with parseURL( ), so it's OK
if this patch is not applied right away - not that it's wrong, but
I might as well submit a fuller patch.
What I'm referring to is the fact that this method gets confused
by other colons in the path of the URL when the URL is something
like "file:/c:/temp/foo.txt". And I think this case is valid
only for "file" URLs.
File.toURL( ) is correct with respect to "/" being used as the
file separator even on Win32 as that's what Sun's JDK is using,
but it uses the "file://" format instead of "file:/" as used
by JDK at least on Win32. Can someone with Sun's or IBM's JRE
on Linux please tell me what it is for a path like
"/foo/bar" - is it "file:///foo/bar" or just "file:/foo/bar"?
Ranjit.
More information about the Java-patches
mailing list