RFR: 8288120: VerifyError with JEP 405 pattern match [v2]
Jan Lahoda
jlahoda at openjdk.org
Mon Jun 20 12:00:51 UTC 2022
On Fri, 17 Jun 2022 20:24:39 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Using component's accessor, as suggested.
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TransPatterns.java line 351:
>
>> 349: return component2Proxy.computeIfAbsent(component, c -> {
>> 350: MethodSymbol realAccessor =
>> 351: rs.resolveInternalMethod(pos, env, component.owner.type,
>
> suggestion: I think that you can just read the `accessor` field in the record component, it should point to the accessor's symbol which is what you want here
Thanks, I didn't realize that! Fixed now.
-------------
PR: https://git.openjdk.org/jdk19/pull/34
More information about the compiler-dev
mailing list