<div dir="ltr"><div dir="ltr">On Wed, Feb 1, 2023 at 4:40 PM Alex Buckley <<a href="mailto:alex.buckley@oracle.com" target="_blank">alex.buckley@oracle.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Your reading of the JLS is correct. The cast expression `(T)obj` occurs <br>
in a static context, so the use of T should be disallowed, and javac <br>
should reject the program.<br></blockquote><div><br></div><div>Thanks. Filed as <a href="https://bugs.openjdk.org/browse/JDK-8301649" target="_blank">JDK-8301649</a>.</div><div><br></div><div>-Archie<br></div></div><br>-- <br><div dir="ltr">Archie L. Cobbs<br></div></div>