Integrated: 8325257: jshell reports NoSuchFieldError with instanceof primitive type
Aggelos Biboudis
abimpoudis at openjdk.org
Wed Feb 7 07:03:00 UTC 2024
On Tue, 6 Feb 2024 10:50:08 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> Fixed compiler bug during lowering of the type test, where the let expression was using the `expr` of the old `tree` and not of the translated one. The latter manifested as a JShell error. Added compiler test as well. e.g.,
>
>
> class $JShell$2 {
>
> $JShell$2() {
> super();
> }
> public static boolean $1;
>
> public static Object do_it$() throws Throwable {
> return Boolean.valueOf($1 = (let /*synthetic*/ final Object tmp184$ = $JShell$1.o
> in tmp184$ != null && o instanceof Long));
> // ^
> }
> }
This pull request has now been integrated.
Changeset: e0d98dd3
Author: Aggelos Biboudis <abimpoudis at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e0d98dd3019b2fd6b95dd341296899dc0b470cb1
Stats: 22 lines in 3 files changed: 17 ins; 0 del; 5 mod
8325257: jshell reports NoSuchFieldError with instanceof primitive type
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/jdk/pull/17729
More information about the compiler-dev
mailing list