[jdk17u-dev] RFR: 8324234: Use reserved IP for java.net testing
Ludovic Henry
luhenry at openjdk.org
Mon Jan 22 07:50:51 UTC 2024
Some tests like test/jdk/java/net/Socket/B8312065.java use specific IPs (like 192.168.255.255) taking the assumption that the address is not going to be assigned. This doesn't always hold true, as 192.168.255.255 for example is a valid address.
[RFC 5737](https://www.rfc-editor.org/rfc/rfc5737) defines specific ranges of IP addresses that may are reserved for these exact purpose and that will never be assigned. Let's make sure to use an IP in this range, like 192.0.2.1 for example.
The specific test test/jdk/java/net/Socket/B8312065.java was introduced with https://git.openjdk.org/jdk17u-dev/pull/1639.
-------------
Commit messages:
- 8324234: Use reserved IP for java.net testing
Changes: https://git.openjdk.org/jdk17u-dev/pull/2149/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2149&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8324234
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/2149.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2149/head:pull/2149
PR: https://git.openjdk.org/jdk17u-dev/pull/2149
More information about the jdk-updates-dev
mailing list