First, note that all the wrappers have had static `valueOf()`
factories, and the corresponding constructors have been deprecated
since Java 9. It would be reasonable to deprecate these for
removal at any time. (These would not actually be removed, but
instead made
> De: "Brian Goetz"
> À: "valhalla-spec-experts"
> Envoyé: Mercredi 19 Février 2020 17:45:38
> Objet: Locking on primitive boxes
> One of the main impediments to migrating the primitive wrappers to be the
> reference projection of an inline cla
I received the following reply, which is worth reading into the record:
Brian,
Let me add my 5 cents here. My fear is that actually removing (making
private) constructors of primitive wrappers will break a lot of code
legacy code out there. In fact, even today we use those constructors
to
One of the main impediments to migrating the primitive wrappers to be
the reference projection of an inline class is locking -- there may be
code out there that locks on instances of primitive wrappers. Let's
look at how we might wean users off, and what the compatibility
constraints really