[jdk17u-dev] RFR: 8350540: [17u,11u] B8312065.java fails Network is unreachable

SendaoYan syan at openjdk.org
Sun Feb 23 09:31:44 UTC 2025


Hi all,

Test test/jdk/java/net/Socket/B8312065.java fails on some machines. Test assume 192.168.255.255 is not in use, but on some machines linux command `ping 192.168.255.255` will report "ping: connect: Network is unreachable" failure, so this test will report "java.net.ConnectException: Network is unreachable (connect failed)" failure. And this failure is not caused by JDK bug, so I think it's better throw `jtreg.SkippedException` when this failure reported.

Change has been verified locally, test-fix only to make test more robustness, no risk.

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

Commit messages:
 - 8350540: [17u,11u] B8312065.java fails Network is unreachable

Changes: https://git.openjdk.org/jdk17u-dev/pull/3293/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=3293&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8350540
  Stats: 7 lines in 1 file changed: 6 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/3293.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/3293/head:pull/3293

PR: https://git.openjdk.org/jdk17u-dev/pull/3293


More information about the jdk-updates-dev mailing list