JDK-6501502 : JSR 199: FileObject.toUri should return file:///c:/ or file:/c:/ not file://c:/
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-12-06
  • Updated: 2016-03-23
  • Resolved: 2012-01-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7 b72Fixed OpenJDK6Fixed
Description
The URI returned by the standard file manager URIs causing problems
for URL.openConnection.

See https://openjdk.dev.java.net/servlets/BrowseList?listName=compiler-dev&by=thread&from=601794&to=601794

Comments
EVALUATION See Suggested Fix
07-12-2006

SUGGESTED FIX Just use java.io.File.toURI. It does not canonicalize its return value as we had initially assumed.
07-12-2006