[code-reflection] Integrated: Fix modeling if statements

Paul Sandoz psandoz at openjdk.org
Mon Jul 15 22:57:11 UTC 2024


On Mon, 15 Jul 2024 22:47:44 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> The else part of an if statement was incorrectly handled if it was not a block.
> 
> Additionally fixed `CodeReflectionTester` used in the language tests. It now accesses a code model of a method via getCodeModel rather than directly accessing the field, thereby this is not dependent on how the model is stored in the class file.

This pull request has now been integrated.

Changeset: d661d217
Author:    Paul Sandoz <psandoz at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/d661d21778297f71401dd4da081f53ad1651c6a1
Stats:     111 lines in 3 files changed: 103 ins; 5 del; 3 mod

Fix modeling if statements

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

PR: https://git.openjdk.org/babylon/pull/181


More information about the babylon-dev mailing list