RFR: 8374910: Use of containsTypeEquivalent in array type equality test seems bogus
Vicente Romero
vromero at openjdk.org
Thu Feb 26 14:13:12 UTC 2026
On Mon, 23 Feb 2026 01:53:22 GMT, Chen Liang <liach at openjdk.org> wrote:
>> As discussed in the JIRA entry for the bug, using `Types::containsTypeEquivalent` to determine the equality or not of two array types is probably an indirection; as invoking this method would make sense if the types being compared could contain wildcards which is not allowed for arrays. This PR fixes this minor issue. The previous code is also correct only that it would resort anyways to a type equality comparison,
>>
>> TIA
>
> Looks reasonable to exclude "contains" from equivalence
@liach thanks for the review
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29867#issuecomment-3966874559
More information about the compiler-dev
mailing list