RFR: 8282395: URL.openConnection can throw IOOBE

KIRIYAMA Takuya duke at openjdk.java.net
Tue Apr 19 06:52:26 UTC 2022


On Thu, 14 Apr 2022 08:47:12 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> It is not a valid escape sequence according to the spec.

I see.  JavaAPI document says that Escaped octets, that is, triplets consisting the percent character ('%') followed by two hexadecimal digits. Also, RFC 2396 says that  '%' must be escaped as "%25" in order to be used as data within a URI.
The exception thrown by URI.create() may be appropriate. I consider whether to fix the exception thrown by URL.openConnection().

-------------

PR: https://git.openjdk.java.net/jdk/pull/8155


More information about the net-dev mailing list