JDK-2133262 : File,URI,URL conversions are strange for UNC path
  • Type: Backport
  • Backport of: JDK-5086147
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2006-01-11
  • Updated: 2010-04-02
  • Resolved: 2006-04-21
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 6
6Fixed
Comments
EVALUATION This is a long standing behavior of toURL(), which outputs result URL as 'file:' + path, not 'file://' + path. So for a UNC path, the result URL will be a URL with non-empty authority component. To fix it needs significantlly change the behavior. It is too rosky and impossible for a update release. And, in Tiger this method has beed deprecated. toURI() method does the right thing.
21-04-2006