Type parameters inside super() calls?
Archie Cobbs
archie.cobbs at gmail.com
Wed Feb 1 22:55:12 UTC 2023
On Wed, Feb 1, 2023 at 4:40 PM Alex Buckley <alex.buckley at oracle.com> wrote:
> Your reading of the JLS is correct. The cast expression `(T)obj` occurs
> in a static context, so the use of T should be disallowed, and javac
> should reject the program.
>
Thanks. Filed as JDK-8301649 <https://bugs.openjdk.org/browse/JDK-8301649>.
-Archie
--
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20230201/e529d14e/attachment.htm>
More information about the compiler-dev
mailing list