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

Chen Liang liach at openjdk.org
Mon Sep 22 21:07:49 UTC 2025


On Mon, 22 Sep 2025 18:54:59 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> 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

Looks right to me.

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

Marked as reviewed by liach (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27436#pullrequestreview-3255189349


More information about the compiler-dev mailing list