Migrating library classes to value classes

Kevin Bourrillion kevinb9n at gmail.com
Mon Mar 4 22:57:20 UTC 2024


On Mon, Mar 4, 2024 at 2:44 PM Remi Forax <forax at univ-mlv.fr> wrote:

For a class that you want to see both as an identity class and a value
> class, either you use Maven or Gradle (see [1]) but you have to hand manage
> the different versions or you use a special bytecode rewriter that look for
> annotations internal to your project and duplicate the classes (it seems a
> good use case for the classfile API) with one version being an identity
> class and one version being a value classes.
>

And don't forget the testing impact.

I view this as not a good solution, and think that approaches that don't
require users to rig up such machinery on their side are worth finding when
possible.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/valhalla-spec-observers/attachments/20240304/86da57da/attachment-0001.htm>


More information about the valhalla-spec-observers mailing list