On Fri, 15 May 2026 08:11:09 GMT, Dusan Balek <[email protected]> wrote:
> 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). This pull request has now been integrated. Changeset: 50deb171 Author: Dusan Balek <[email protected]> Committer: Chen Liang <[email protected]> URL: https://git.openjdk.org/jdk/commit/50deb1712c62b64937a996e8d025b32d400a2ba8 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod 8384631: SwitchBoostraps.typeSwitch method Javadoc still mentions target of a reference type Reviewed-by: liach ------------- PR: https://git.openjdk.org/jdk/pull/31174
