On Thu, 21 May 2026 11:37:52 GMT, Adam Sotona <[email protected]> wrote:

> Class-File API provides an option to filter unbound labels and optionally 
> drop related enclosing structures. After performance-related optimizations, 
> this option started causing a side effect where silently dropped structures 
> result in a `NullPointerException` instead of the expected 
> `IllegalArgumentException`.
> 
> This PR narrows that scenario and adds a test for it.
> 
> Please review.
> 
> Thank you,
> Adam
> 
> ---------
> - [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: f1caad39
Author:    Adam Sotona <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/f1caad39e956e87ec16813efc507d13152782853
Stats:     20 lines in 2 files changed: 15 ins; 3 del; 2 mod

8384653: Potential null pointer dereference in 
java.base/share/classes/jdk/internal/classfile/impl/StackMapGenerator.java

Reviewed-by: liach

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

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

Reply via email to