On Tue, 14 Apr 2026 13:40:15 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: > > 8376162: SwitchBoostraps.typeSwitch does not throw IAE as expected Looks good to me as well! ------------- Marked as reviewed by abimpoudis (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/30703#pullrequestreview-4107100865
