On Thu, 21 May 2026 16:59:04 GMT, Chen Liang <[email protected]> wrote:

> The tableswitch instruction is missing construction checks for clearly 
> illegal low and high values. Such values are already filtered when they are 
> read from class files, so it makes sense for us to reject such instructions 
> when they are created unbound.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 05d925ea
Author:    Chen Liang <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/05d925ea568069c8670944fb4e6b3b769f9c51a7
Stats:     58 lines in 6 files changed: 48 ins; 2 del; 8 mod

8385114: Prevent creation of invalid TableSwitchInstruction

Reviewed-by: asotona

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

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

Reply via email to