RFR: 8374910: Use of containsTypeEquivalent in array type equality test seems bogus
Chen Liang
liach at openjdk.org
Mon Feb 23 01:56:07 UTC 2026
On Sun, 22 Feb 2026 17:14:30 GMT, Vicente Romero <vromero 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
-------------
Marked as reviewed by liach (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29867#pullrequestreview-3838817067
More information about the compiler-dev
mailing list