JDK 9 RFR of JDK-8079651: (dc) Promiscuous.java fails with NumberFormatException due to network interference

Alan Bateman Alan.Bateman at oracle.com
Thu May 7 15:37:45 UTC 2015


On 07/05/2015 15:51, Amy Lu wrote:
> java/nio/channels/DatagramChannel/Promiscuous.java
>
> This test has the same issue as JDK-8076644 [1], similar patch applied 
> to this test to resolve two issues:
> 1. Test should attempt to reconstruct the String message with the same 
> charset as is used to convert the original message to bytes, UTF-8.
> 2. Test should ignore data that cannot be parsed, possible there is 
> interference on the network, then continue to try to read the expected 
> id.
>
> bug: https://bugs.openjdk.java.net/browse/JDK-8079651
> webrev: http://cr.openjdk.java.net/~amlu/8079651/webrev.00/
It could be interference on the same machine too when running many tests 
at the same time. In any case, your patch looks good to me.

-Alan


More information about the nio-dev mailing list