> On 10 Aug 2016, at 09:41, Aleksey Shipilev <[email protected]> wrote: > > On 08/10/2016 03:14 AM, Paul Sandoz wrote: >> >> http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8161444-vhs-bitwise-atomics/webrev/ > > *) I probably missed this discussion, but why do we have bitwise ops on > boolean? I don't think boolean is a integral type to have exposed bit > representation. (Edit: this seems useful to get atomic {add, or, xor} > over the booleans themselves, not their "bits" -- confusing at first.) >
I included boolean for completeness, but i agree it’s a little confusing, it should be a “Logical” in this context e.g.: https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.22.2 <https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.22.2> Perhaps we can add a note stating this? Paul.
