RFR: 8314275: Incorrect stepping in switch [v2]

Aggelos Biboudis abimpoudis at openjdk.org
Thu Feb 8 17:03:21 UTC 2024


On Thu, 8 Feb 2024 16:55:45 GMT, Vicente Romero <vromero at openjdk.org> wrote:

>> I see what you mean. Those switches do not store their value (no store bytecode is emitted). This is why they didn't fail I presume. Do you think there is a discrepancy between how we compile the code in the two tests regarding `LineNumberTable`?
>
> no I was just wondering why the issue didn't appear in the previous test, but what you are saying could be the explanation

What do you think about this? https://github.com/openjdk/jdk/pull/17772/commits/a836d976e56c624882ae793ee89b1146c9fd4352

(also notice the newly added test case. For the `switch` statement the line 8 is not included and for the `switch` expression it is.)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17772#discussion_r1483308140


More information about the compiler-dev mailing list