mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-06 03:35:10 +00:00
8246164: SendDatagramToBadAddress.java and ChangingAddress.java should be changed to explicitly require the new DatagramSocket implementation
This fix updates these tests to explicitly run with `-Djdk.net.usePlainDatagramSocketImpl=false` to avoid false failures when running all tests with a global jtreg -Djdk.net.usePlainDatagramSocketImpl switch. Reviewed-by: vtewari
This commit is contained in:
parent
1cc8d3a34b
commit
2dda9965cd
@ -28,6 +28,7 @@
|
||||
*
|
||||
* @summary DatagramSocket.send should throw exception when connected
|
||||
* to an invalid destination (on platforms that support it).
|
||||
* @run main/othervm -Djdk.net.usePlainDatagramSocketImpl=false SendDatagramToBadAddress
|
||||
*/
|
||||
|
||||
import java.net.*;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,6 +25,7 @@
|
||||
* @bug 6431343
|
||||
* @summary Test that DatagramChannel.getLocalAddress returns the right local
|
||||
* address after connect/disconnect.
|
||||
* @run main/othervm -Djdk.net.usePlainDatagramSocketImpl=false ChangingAddress
|
||||
*/
|
||||
import java.net.*;
|
||||
import java.nio.channels.DatagramChannel;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user