RFR: 8299187: Ensure safe publication of name in ByteOrder

Jaikiran Pai jpai at openjdk.org
Fri Dec 23 06:31:48 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.

Hello Per, making the field `final` looks fine to me. Please update the copyright year on this file before integrating. Please also add a `noreg-trivial` label to the JBS issue.

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

Marked as reviewed by jpai (Reviewer).

PR: https://git.openjdk.org/jdk/pull/11752


More information about the nio-dev mailing list