RFR: 8264200: java/nio/channels/DatagramChannel/SRTest.java fails intermittently [v2]

Roger Riggs rriggs at openjdk.java.net
Tue Apr 6 14:57:55 UTC 2021


On Tue, 6 Apr 2021 14:46:26 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Alright then so I will continue to to just use `US_ASCII` in this test as "hello" is mappable with it. Encoding and Decoding the string will be done with `US_ASCII`. Appreciate the feedback guys, thanks!
>
> Thanks Conor. Yes - we could work with byte arrays but strings are easier to print & log & more human friendly...

ok,  but please use getBytes(StandardCharsets.US_ASCII) to get the bytes avoiding ambiguity.

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

PR: https://git.openjdk.java.net/jdk/pull/3354


More information about the nio-dev mailing list