[jdk21u-dev] RFR: 8338748: Test Disconnect.java compile error: cannot find symbol after JDK-8299813
Aleksey Shipilev
shade at openjdk.org
Fri Aug 23 10:37:08 UTC 2024
On Wed, 21 Aug 2024 15:48:49 GMT, SendaoYan <syan at openjdk.org> wrote:
> 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.
Is this a 17u/21u-specific fix? I believe the style is to prepend the synopsis with `[17u, 21u] ...` then.
Missing context: [JDK-8272215](https://bugs.openjdk.org/browse/JDK-8272215) is only available in JDK 22, this is why this fails.
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/939#issuecomment-2306805323
More information about the jdk-updates-dev
mailing list