<div dir="ltr"><div dir="ltr">On Mon, Mar 4, 2024 at 2:44 PM Remi Forax <<a href="mailto:forax@univ-mlv.fr" target="_blank">forax@univ-mlv.fr</a>> wrote:<br></div><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div><span style="font-size:12pt">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.</span></div></div></blockquote><div><br></div><div>And don't forget the testing impact.</div><div><br></div><div>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.</div><div><br></div></div></div>