On Wed, 9 Sep 2026 10:25:30 GMT, Volkan Yazici <[email protected]> wrote:

> Improve `java.net.URI` test coverage for oversized IPv4 octets, in 
> particular, in IPv4-mapped IPv6 addresses.
> 
> ---------
> - [X] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

test/jdk/java/net/URI/Test.java line 1055:

> 1053:         test("http://[::FFFF:1.2.3.4"; + Long.MAX_VALUE + "]").x().z();
> 1054:         test("http://1.2.3";).psa().x().z();
> 1055:         test("http://1.2.3.300";).psa().x().z();

Can you add this additional test for plain IPv4-like literal?

Suggestion:

        test("http://1.2.3.300";).psa().x().z();
        test("http://1.2.3.3"; + Long.MAX_VALUE).psa().x().z();

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

PR Review Comment: https://git.openjdk.org/jdk/pull/32786#discussion_r3978277731

Reply via email to