[code-reflection] RFR: Assertion Interpreter Implementation
Paul Sandoz
psandoz at openjdk.org
Fri Mar 8 17:22:19 UTC 2024
On Fri, 8 Mar 2024 07:11:36 GMT, Hannes Greule <hgreule at openjdk.org> wrote:
> Seeing this, I think there's a problem coming from the initial work on `assert`.
Oops, my bad. I forgot the second expression of the assert statement can evaluate to a value of any type (including arrays):
https://docs.oracle.com/javase/specs/jls/se21/html/jls-14.html#jls-14.10
And the `AssertionError` class has constructors accepting primitive arguments.
Should be an easy iterative fix.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/36#discussion_r1518016836
More information about the babylon-dev
mailing list