[code-reflection] RFR: Transform runtime test to JUnit
Paul Sandoz
psandoz at openjdk.org
Sat Sep 20 15:37:51 UTC 2025
On Sat, 20 Sep 2025 02:29:33 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:
>> test/jdk/java/lang/reflect/code/TestLambdaOps.java line 60:
>>
>>> 58: import static jdk.incubator.code.dialect.java.JavaType.type;
>>> 59:
>>> 60: @TestInstance(TestInstance.Lifecycle.PER_CLASS)
>>
>> Why do you need this?
>
> So that we can have a non static method source.
Ah, in that case i suggest we split those parts of the test that require that into a separate class appropriately annotated (and with a comment), and I believe we can also change the return type of factory method `methodRefLambdas`to `List<Quotable>`.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/578#discussion_r2365685733
More information about the babylon-dev
mailing list