RFR: 8292625: jshell crash on "var a = a"

Bo Zhang duke at openjdk.org
Mon Nov 21 14:01:35 UTC 2022


On Mon, 21 Nov 2022 13:54:13 GMT, Bo Zhang <duke at openjdk.org> wrote:

> This commit adds the missing `type` assignment after attributing a variable's initial value. In some cases, this issue causes an NPE.
> 
> This issue has existed for a long time, but the NPE was swallowed until https://github.com/openjdk/jdk/commit/433394203dce55db95caefcb57bac9ec114ebc47 stopped swallowing such exceptions.

@mcimadamore Can you please take a look?

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

PR: https://git.openjdk.org/jdk/pull/11263


More information about the compiler-dev mailing list