RFR: 8365620: Using enhanced switch in MethodHandleDesc
David Alayachew
duke at openjdk.org
Sun Aug 31 03:34:47 UTC 2025
On Sun, 31 Aug 2025 03:24:37 GMT, Chen Liang <liach at openjdk.org> wrote:
> Hi @davidalayachew, I think what @wenshao tries to do here is to preserve behavioral parity before and after the migrations. You are indeed correct that listing the constants explicitly would allow us to fail with a compile error when we add new constants.
If that's the logic, then I understand. Guess making this exhaustive should be it's own separate task, which I do think is worth doing.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26769#issuecomment-3239718180
More information about the core-libs-dev
mailing list