[code-reflection] RFR: 8374550: API for casting Value to Op.Result and Block.Parameter [v2]
Paul Sandoz
psandoz at openjdk.org
Tue Jan 6 00:43:36 UTC 2026
On Tue, 6 Jan 2026 00:03:31 GMT, Ruby Chen <duke at openjdk.org> wrote:
>> This PR adds two methods, `Value::result()` and `Value::parameter()`, which cast a given Value as a Op.Result or Block.Parameter. If the cast fails, the two methods throw an IllegalStateException.
>
> Ruby Chen has updated the pull request incrementally with one additional commit since the last revision:
>
> Add tests
Very good. Nice test.
test/jdk/java/lang/reflect/code/TestValueCast.java line 2:
> 1: /*
> 2: * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
Suggestion:
* Copyright (c) 2026, Oracle and/or its affiliates. All rights reserved.
-------------
Marked as reviewed by psandoz (Lead).
PR Review: https://git.openjdk.org/babylon/pull/816#pullrequestreview-3628873561
PR Review Comment: https://git.openjdk.org/babylon/pull/816#discussion_r2663192349
More information about the babylon-dev
mailing list