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

Adam Sotona asotona at openjdk.org
Tue Sep 23 09:12:50 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

Thank you for the reviews!

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

PR Comment: https://git.openjdk.org/jdk/pull/27436#issuecomment-3323064725


More information about the compiler-dev mailing list