RFR: 8299187: Ensure safe publication of name in ByteOrder
altrisi
duke at openjdk.org
Thu Dec 29 12:57:49 UTC 2022
On Wed, 21 Dec 2022 09:29:59 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> This PR proposes to declare the field `ByteOrder.name` `final`.
>
> This will ensure the class is thread safe and is using safe publication.
Is there any reason why it doesn't just use the enum name?
-------------
PR: https://git.openjdk.org/jdk/pull/11752
More information about the nio-dev
mailing list