-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b104
-
generic
-
generic
-
Verified
For non-opaque URIs, the URI components will have been parsed and validated in accordance with the RFC2396 rules, but URI.toURL() goes the route via new URL(String spec) which validates the URI again.
By going via one of URLs component based constructor, URI.toURL could be faster as well as allocate less garbage.
By going via one of URLs component based constructor, URI.toURL could be faster as well as allocate less garbage.
- relates to
-
JDK-8148626 URI.toURL needs to use protocol Handler to parse file URIs
- Resolved