On Mon, 13 Apr 2026 12:22:55 GMT, Dusan Balek <[email protected]> wrote:

> With the `SwitchBootstraps.typeSwitch(...)` method, there is a specification 
> issue (difference between what is written in the method's Javadoc and its 
> actual behaviour) causing some JCK tests to fail.
> 
> The proposal here is:
> Adjust the Javadoc of the `SwitchBootstraps.typeSwitch(...)` method to 
> reflect the following changes in the behaviour of the method:
> - the method no longer requires a `target` to be of a reference type 
> (primitive type targets are allowed now)
> - primitive type `labels` are allowed now if the preview features are enabled
> 
> 
> ---------
> - [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: c39cf564
Author:    Dusan Balek <[email protected]>
Committer: Chen Liang <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/c39cf564fc967a0b2ae75322610beeb08302fc53
Stats:     22 lines in 1 file changed: 7 ins; 2 del; 13 mod

8381898: SwitchBootstraps::typeSwitch() not accepting Float, Double types
8376162: SwitchBoostraps.typeSwitch does not throw IAE as expected

Reviewed-by: liach, abimpoudis

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

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

Reply via email to