> 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. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/30703/files - new: https://git.openjdk.org/jdk/pull/30703/files/7565a5af..00caac64 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=30703&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=30703&range=03-04 Stats: 10 lines in 1 file changed: 0 ins; 3 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/30703.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30703/head:pull/30703 PR: https://git.openjdk.org/jdk/pull/30703
