RFR: 8299576: Reimplement java.io.Bits using VarHandle access [v5]

Michael Kuhlmann jdk at fiolino.de
Thu Jan 5 12:31:15 UTC 2023


The more I think about it, the clearer is that the first line of the 
Javadoc is contrary to the other lines:

On 1/5/23 12:59, Michael Kuhlmann wrote:
> * read write access modes for all T, with the exception of access modes 
> get and set for long and double on 32-bit platforms.

So all read write modes will work, just if it's long or double then it 
won't work for get and for set access mode. (Or is getAndSet meant? But 
it's not called so, it's "get and set", so two access modes, or what?)

Then the following lines state that even harder access modes will work 
also for long and double.

So I think this should be labeled as "getAndSet" or at least 
"get-and-set" access mode. Currently it's very confusing.


More information about the core-libs-dev mailing list