While fixing the issue https://bugs.openjdk.org/browse/JDK-8376162, a change to the `SwitchBoostraps.typeSwitch` method Javadoc was made reflecting the fact that the switch target no longer needs to be of a reference type. All mentions of the "reference type" in the documentation have been changed to the “target type” with one omission:
@throws IllegalArgumentException if the invocation type is not a method type of first parameter of a reference type, … The proposal here is to fix this omission. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8384631: SwitchBoostraps.typeSwitch method Javadoc still mentions target of a reference type Changes: https://git.openjdk.org/jdk/pull/31174/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31174&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8384631 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/31174.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31174/head:pull/31174 PR: https://git.openjdk.org/jdk/pull/31174
