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

Naoto Sato naoto at openjdk.java.net
Mon Jun 7 22:37:14 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.

Looks good. I'd be tempted to write `v instanceof Param p ? p : null;`, but then it could not be backported.

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

Marked as reviewed by naoto (Reviewer).

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


More information about the core-libs-dev mailing list