On Mon, 27 Apr 2026 15:08:45 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).
>
> Dusan Balek has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Apply more suggestions from code review by @liach.

Thanks for the fix!

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

PR Comment: https://git.openjdk.org/jdk/pull/30703#issuecomment-4334340379

Reply via email to