Using enhanced switch in MethodHandleDesc

wenshao shaojin.wensj at alibaba-inc.com
Fri Aug 15 01:51:54 UTC 2025


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.
https://github.com/openjdk/jdk/pull/26769 <https://github.com/openjdk/jdk/pull/26769 >
I have submitted a draft Pull Request and would appreciate some feedback.
-
Shaojin Wen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250815/f8d80c96/attachment-0001.htm>


More information about the core-libs-dev mailing list