RFR: 8264766: ClassCastException during template compilation (Variable can not be cast to Param)

Joe Wang joehw at openjdk.java.net
Mon Jun 7 23:58:15 UTC 2021


On Mon, 7 Jun 2021 18:49:19 GMT, Joe Wang <joehw at openjdk.org> wrote:

> Fixes the addVariable/addParam methods in the SymbolTable to check types before casting.

Thanks Naoto!   
Yeah, we're trying to keep the code level at 8 at the moment unless necessary (e.g. the optional elements for Deprecated), pattern matching for instanceof is a bit new.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4398


More information about the core-libs-dev mailing list