RFR: 8211163: UNIX version of Java_java_io_Console_echo does not return a clean boolean

Andrew Haley aph at redhat.com
Wed Sep 26 16:37:24 UTC 2018


On 09/26/2018 04:58 PM, Aleksey Shipilev wrote:
> Patch looks good, I suggested the same fix earlier, and thought Sherman would handle it:

Right, but nobody seems to have noticed that it only works by accident.
Whether it's legal to return a value outside the set of {0, 1} doesn't
much matter IMO, it's *still* *wrong*.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the jdk-dev mailing list