[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 15:43:08 UTC 2024
On Mon, 9 Sep 2024 14:14:29 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, 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
Thanks for the review.
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/939#issuecomment-2338458397
More information about the jdk-updates-dev
mailing list