RFR: 8374910: Use of containsTypeEquivalent in array type equality test seems bogus
Vicente Romero
vromero at openjdk.org
Sun Feb 22 17:21:49 UTC 2026
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
-------------
Commit messages:
- 8374910: Use of containsTypeEquivalent in array type equality test seems bogus
Changes: https://git.openjdk.org/jdk/pull/29867/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29867&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8374910
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/29867.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29867/head:pull/29867
PR: https://git.openjdk.org/jdk/pull/29867
More information about the compiler-dev
mailing list