[code-reflection] RFR: 8337162: Support primitives in patterns [v5]
Mourad Abbay
mabbay at openjdk.org
Wed Oct 9 00:28:38 UTC 2024
On Tue, 8 Oct 2024 17:51:09 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:
>> test/jdk/java/lang/reflect/code/TestPrimitiveTypePatterns.java line 60:
>>
>>> 58: @CodeReflection
>>> 59: // works as generic model that will be transformed to test conversion from a sourceType to targetType
>>> 60: static boolean f(byte b) {
>>
>> Alas unfortunately such a transformation it is harder than i anticipated because the types permeate through pattern match operation, so you have to replace the whole pattern match op. Which means you might as well build the model explicitly, sorry if i misled you.
>
> we are only replacing the pattern type op
I see what you mean.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/246#discussion_r1792643867
More information about the babylon-dev
mailing list