<div dir="ltr"><div dir="ltr"><div>Thanks for the comments. Using invokedynamic makes perfect sense! (and I'm disappointed I didn't think of it :)</div><div><br></div><div>I'll take a look into it and report back.</div><div><br></div><div>-Archie<br></div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 9, 2023 at 9:54 AM Maurizio Cimadamore <<a href="mailto:maurizio.cimadamore@oracle.com">maurizio.cimadamore@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>I agree with Brian. If we want to fix this and put our hands in
the enum switch classification, I think the best use of our time
would be to tweak enum switches to adopt the superior indy-based
classification approach, which should be immune to the issue you
present.</p>
<p>Thanks<br>
Maurizio<br>
</p>
<div>On 09/01/2023 15:35, Brian Goetz wrote:<br>
</div>
<blockquote type="cite">
<font face="Menlo">Another strategy is to use an
`invokedynamic` as a switch classifier. (I believe there is
even a bootstrap for this implemented somewhere.)<br></font></blockquote></div></blockquote></div><br>-- <br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>