Skip to content

Commit

Permalink
Update (2024.10.16, 2nd)
Browse files Browse the repository at this point in the history
34942: 8338748: [17u,21u] Test Disconnect.java compile error: cannot find symbol after JDK-8299813
  • Loading branch information
loongson-jvm authored Oct 17, 2024
1 parent 8f0b7c7 commit 1e63782
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

0 comments on commit 1e63782

Please sign in to comment.