On Thu, 14 Aug 2025 04:49:28 GMT, Shaojin Wen <[email protected]> wrote:

> In MethodHandleDesc, the `ofField` method uses enhanced switch, while the 
> `of` and `ofMethod` methods use traditional switch. The same class should 
> have a unified style.

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.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/26769#issuecomment-3239715196

Reply via email to