RFR: 8366926: Unexpected exception occurs when executing code in a "local" JShell environment

Adam Sotona asotona at openjdk.org
Mon Sep 22 19:02:54 UTC 2025


JShell "local" execution environments instruments loaded classes.
Instrumentation depends on the default class hierarchy resolution, which only knows already loaded classes.
Reported bug provides a test case where class hierarchy of the local classes is required and the resolution fails.

This patch configures instrumentation with the default class hierarchy resolver chained with a resolver parsing the pre-instrumentation class binaries.

Please review.

Thanks,
Adam

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

Commit messages:
 - 8366926: Unexpected exception occurs when executing code in a "local" JShell environment

Changes: https://git.openjdk.org/jdk/pull/27436/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27436&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8366926
  Stats: 89 lines in 2 files changed: 84 ins; 2 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/27436.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27436/head:pull/27436

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


More information about the compiler-dev mailing list