ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42422] New: - Locator failing on Java1.4+ with a unix path containing a hostname: URI has an authority component
Date Tue, 15 May 2007 11:45:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42422>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

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

           Summary: Locator failing on Java1.4+ with a unix path containing
                    a hostname: URI has an authority component
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: stevel@apache.org


If we try to create a File URI from a path with a double forward slash, the JRE
itself bails out in URI.create(String). This appears to be a bug in the JRE.

Bad URI file://cluster/home/ant/lib:URI has an authority component

java.lang.IllegalArgumentException: Bad URI file://cluster/home/ant/lib:URI has
an authority component
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:179)
at org.apache.tools.ant.launch.LocatorTest.resolve(LocatorTest.java:44)
at org.apache.tools.ant.launch.LocatorTest.resolveTo(LocatorTest.java:52)
at org.apache.tools.ant.launch.LocatorTest.testUnixNetworkPath(LocatorTest.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message