ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Unused method Locator.fromUriJava14
Date Tue, 07 Aug 2007 09:10:30 GMT
Jan.Materne@rzf.fin-nrw.de wrote:
> The implementation of Locator.fromUri() (the facade for Java13+Java14
> conversion) was introduced with [1].
> But why the 1.4 implementation is commented out?
> 
>     public static String fromURI(String uri) {
>         // #buzilla8031: first try Java 1.4.
>         String result = null;
>         //result = fromUriJava14(uri);
>         if (result == null) {
>             result = fromURIJava13(uri);
>         }
>         return result;
>     }
> 
> 

I commented it out because it was failing with an exception on some 
paths; I forget which but am sure there will be a bugrep against it

http://issues.apache.org/bugzilla/show_bug.cgi?id=42275
http://issues.apache.org/bugzilla/show_bug.cgi?id=42422

Which is related to Java bug
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5086147

new File(file1.toURI().toString()) fails if file1 is a network file.

there are some unit tests for this, and the fix went in to SVN head 
after 1.7.0; we should make sure it goes in to the 1.7.1 branch

-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message