Integrated: 8374910: Use of containsTypeEquivalent in array type equality test seems bogus
Vicente Romero
vromero at openjdk.org
Thu Feb 26 14:16:51 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
This pull request has now been integrated.
Changeset: 82ff0255
Author: Vicente Romero <vromero at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/82ff0255c59645ec115ac7a5fa055667770bf0cf
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
8374910: Use of containsTypeEquivalent in array type equality test seems bogus
Reviewed-by: liach
-------------
PR: https://git.openjdk.org/jdk/pull/29867
More information about the compiler-dev
mailing list