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

SendaoYan syan at openjdk.org
Mon Sep 9 14:14:29 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, the `InetAddress.ofLiteral` API was added by [JDK-8272215](https://bugs.openjdk.org/browse/JDK-8272215) in jdk22.
> Change `InetAddress.ofLiteral`to `Inet6Address.getByName`, change has been verified, test fix only, no risk.

SendaoYan has updated the pull request incrementally with one additional commit since the last revision:

  change Inet4Address.getByName and Inet6Address.getByName to InetAddress.getByName

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

Changes:
  - all: https://git.openjdk.org/jdk21u-dev/pull/939/files
  - new: https://git.openjdk.org/jdk21u-dev/pull/939/files/151843d8..125f1721

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=939&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=939&range=00-01

  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