[code-reflection] RFR: 8337158: Modeling and lowering of switch statement [v13]

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Aug 16 13:54:00 UTC 2024


On Fri, 16 Aug 2024 12:02:19 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:

>> Modeling and lowering of switch statement.
>
> Mourad Abbay has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Add a test case of switch statement model
>  - Runtime tests of switch statement

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/ReflectMethods.java line 1686:

> 1684:                 JCTree.JCCaseLabel headCl = c.labels.head;
> 1685:                 if (headCl instanceof JCTree.JCPatternCaseLabel pcl) {
> 1686:                     if (c.labels.size() > 1) {

Can this happen, with patterns?

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

PR Review Comment: https://git.openjdk.org/babylon/pull/211#discussion_r1719875401


More information about the babylon-dev mailing list