RFR: JDK-8286610: Add additional diagnostic output to java/net/DatagramSocket/InterruptibleDatagramSocket.java

Alan Bateman alanb at openjdk.org
Sat Jun 25 05:27:53 UTC 2022


On Fri, 24 Jun 2022 14:31:59 GMT, Bill Huang <duke at openjdk.org> wrote:

> Failure was observed on java/net/DatagramSocket/InterruptibleDatagramSocket.java where data was received unexpectedly ( [JDK-8286607](https://bugs.openjdk.org/browse/JDK-8286607)). This failure could be caused by interference from other ongoing tests. The fix here is to output the unexpected received data and the sender's address for a further investigation ([JDK-8286610](https://bugs.openjdk.org/browse/JDK-8286610)).

test/jdk/java/net/DatagramSocket/InterruptibleDatagramSocket.java line 101:

> 99:     public static void main(String[] args) throws Exception {
> 100:         try (DatagramSocket s = new DatagramSocket()) {
> 101:             System.out.println("Established uninterruptible datagram socket "

"Established uninterruptible datagram socket" is a bit strange. I think I you want to this to say "Created datagram socket bound to port %d".

-------------

PR: https://git.openjdk.org/jdk/pull/9278


More information about the net-dev mailing list