Skip to content

Commit

Permalink
8338748: [17u,21u] Test Disconnect.java compile error: cannot find sy…
Browse files Browse the repository at this point in the history
…mbol after JDK-8299813

Backport-of: ad5656f7fa53e7d380dbadc204501c3c7f2e822a
  • Loading branch information
SendaoYan authored and mrserb committed Sep 24, 2024
1 parent 22bcb90 commit cf0fea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/nio/channels/DatagramChannel/Disconnect.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void main(String[] args) throws IOException {
if (IPSupport.hasIPv4()) {
// test with IPv4 only
try (DatagramChannel dc = DatagramChannel.open(StandardProtocolFamily.INET)) {
InetAddress lo4 = InetAddress.ofLiteral("127.0.0.1");
InetAddress lo4 = InetAddress.getByName("127.0.0.1");
System.out.println("Testing with INET family and " + lo4);
test(dc, lo4);
test(dc, lo4);
Expand All @@ -62,7 +62,7 @@ public static void main(String[] args) throws IOException {
if (IPSupport.hasIPv6()) {
// test with IPv6 only
try (DatagramChannel dc = DatagramChannel.open(StandardProtocolFamily.INET6)) {
InetAddress lo6 = InetAddress.ofLiteral("::1");
InetAddress lo6 = InetAddress.getByName("::1");
System.out.println("Testing with INET6 family and " + lo6);
test(dc, lo6);
test(dc, lo6);
Expand Down

1 comment on commit cf0fea9

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.