RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v3]
Alan Bateman
alanb at openjdk.org
Tue Jun 24 14:51:33 UTC 2025
On Mon, 23 Jun 2025 14:34:20 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Yes, but is that good though? This is a public API and surely as a random user I shouldn't be able to trigger an `Error` just by having bad input data?
>> Since we can reasonably reason that, to a first approximation, "this code path isn't being hit by anyone" it felt reasonable to reflect "bad input data" with a MalformedURLException.
>> Shall I change it back?
>
> MalformedURLException is fine.
Yes, I agree.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25871#discussion_r2164238754
More information about the net-dev
mailing list