Same type checking and array types and containsTypeEquivalent question

Laird Nelson ljnelson at gmail.com
Fri Jan 9 17:57:05 UTC 2026


On Fri, Jan 9, 2026 at 8:53 AM Maurizio Cimadamore <
maurizio.cimadamore at oracle.com> wrote:

> The use of containsTypeEquivalent in that location is likely a leftover.
> Remember that javac was developed _while_ the specification for generics
> and wildcards was written. I recall that ~20 years ago, javac used to allow
> wildcards in a lot more places compared to the spec (and this caused
> several issues). That's probably why this method was needed back then.
>
As I suspected. (The concept is kind of interesting! Left over from the
incorporation of GJ I assume?)

> Filed this:
>
> https://bugs.openjdk.org/browse/JDK-8374910
>
> For now I've assigned to Vicente, but if you want to take a stab at it,
> we'd be happy to accept your contribution!
>
I might be willing to dip my toe into the water but I can't commit to any
particular timeframe. Thanks for the invitation.

Best,
Laird
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20260109/643fc6a0/attachment.htm>


More information about the compiler-dev mailing list