[jdk21u-dev] RFR: 8338748: Test Disconnect.java compile error: cannot find symbol after JDK-8299813

SendaoYan syan at openjdk.org
Wed Aug 21 15:53:20 UTC 2024


Hi all,
Test `java/nio/channels/DatagramChannel/Disconnect.java` compile error: `cannot find symbol InetAddress.ofLiteral` after JDK-8299813. There is no `InetAddress.ofLiteral` API in jdk21u and jdk17u.
Change `InetAddress.ofLiteral`to `Inet6Address.getByName`, change has been verified, test fix only, no risk.

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

Commit messages:
 - 8338748: Test java/nio/channels/DatagramChannel/Disconnect.java compile error: cannot find symbol InetAddress.ofLiteral after JDK-8299813

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

PR: https://git.openjdk.org/jdk21u-dev/pull/939


More information about the jdk-updates-dev mailing list