Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2194727 | OpenJDK6 | Jonathan Gibbons | P4 | Resolved | Fixed | b21 |
The spec for File.toUri contains the following:
>> For a given abstract pathname f, it is guaranteed that
>> new File( f.toURI()).equals( f.getAbsoluteFile())
On Windows, the result of f.toUri() is something like
file://C/w/jjg/work/....
When I try and use new File(f.toUri()) I get the following exception
java.lang.IllegalArgumentException: URI has an authority component
This is with JDK 1.7, on Windows XP SP2, using Cygwin.
>> For a given abstract pathname f, it is guaranteed that
>> new File( f.toURI()).equals( f.getAbsoluteFile())
On Windows, the result of f.toUri() is something like
file://C/w/jjg/work/....
When I try and use new File(f.toUri()) I get the following exception
java.lang.IllegalArgumentException: URI has an authority component
This is with JDK 1.7, on Windows XP SP2, using Cygwin.
- backported by
-
JDK-2194727 JavaFileObject.toUri returns bogus URI (win)
-
- Resolved
-
- relates to
-
JDK-4679530 "file:" URLs: URI.toURL spec violated, host value inconsistency, equality issues
-
- Closed
-
-
JDK-6877223 tests @ignored because of issues with File.toURI on Windows
-
- Closed
-
-
JDK-6869804 langtools tests should be Cygwin-aware
-
- Closed
-