RFR: 8267321: Use switch expression for VarHandle$AccessMode lookup

Claes Redestad redestad at openjdk.java.net
Wed May 19 14:52:37 UTC 2021


On Wed, 19 May 2021 14:31:48 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> LGTM. I assume existing tests verify that all values of the enum are covered by the switch?

Thanks! Yes, the method with the switch is called when linking a VH, and the tests should be exhaustive in that regard.

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

PR: https://git.openjdk.java.net/jdk/pull/4102


More information about the core-libs-dev mailing list