RE: FileURL.java

"Chris Wong" <[email protected]>
Newsgroups gmane.text.xml.commons.devel
Message-ID <[email protected]>
Thanks for responding. The fix from the Java perspective is obvious. But what puzzles me is why the resolver works in spite of this nonfunctioning line.

Chris

-----Original Message-----
From: Davanum Srinivas [mailto:[email protected]]
Sent: Thursday, July 28, 2005 10:20 AM
To: Chris Wong
Cc: XML-Commons-Dev (E-mail)
Subject: Re: FileURL.java


userdir = userdir.replace('\\', '/');

On 7/28/05, Chris Wong <[email protected]> wrote:
>  
> I was poking around the resolver code, and found the following lines in
> FileURL.makeURL: 
>   
>     String userdir = System.getProperty("user.dir");
>     userdir.replace('\\', '/'); 
>   
> This is in org.apache.xml.resolver.helpers. These lines used to be in
> ResolvingXMLFilter.java in an older version of the resolver code. Unless
> reality has warped on me, the userdir.replace() call has absolutely no
> effect. 
>   
> Chris 


-- 
Davanum Srinivas -http://blogs.cocoondev.org/dims/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.