RFR: JDK-8288207: Enhance MalformedURLException in Uri.parseCompat

Matthias Baesken mbaesken at openjdk.java.net
Mon Jun 13 07:30:06 UTC 2022


On Fri, 10 Jun 2022 14:19:27 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> I might question whether the added "null:-1" information is really helpful, or just as confusing however.

Hi Daniel, should we maybe better print something like "check for not allowed characters" in the exception ? Do you have an easy and cheap way in mind to the get the unsupported character (in this case "_") to add it to the output ? Would maybe be more helpful than the proposed host:port and better regarding security concerns.

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

PR: https://git.openjdk.org/jdk/pull/9126


More information about the core-libs-dev mailing list