On Fri, 15 Nov 2024 00:25:20 GMT, Paul Sandoz <psan...@openjdk.org> wrote:
> Annotate `Float16` with `jdk.internal.ValueBased`. This requires we export > the package `jdk.internal` in module `java.base` to module` > jdk.incubator.vector`. > > Doing so enables the compiler and runtime to report warnings about improper > attempts to synchronize on instances of `Float16`, as described in [JEP > 390](https://openjdk.org/jeps/390). Makes sense. Also good simplification of factory call with existing static imports. ------------- Marked as reviewed by liach (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/22128#pullrequestreview-2437458456