From 50deb1712c62b64937a996e8d025b32d400a2ba8 Mon Sep 17 00:00:00 2001 From: Dusan Balek Date: Thu, 21 May 2026 06:45:18 +0000 Subject: [PATCH] 8384631: SwitchBoostraps.typeSwitch method Javadoc still mentions target of a reference type Reviewed-by: liach --- .../share/classes/java/lang/runtime/SwitchBootstraps.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java.base/share/classes/java/lang/runtime/SwitchBootstraps.java b/src/java.base/share/classes/java/lang/runtime/SwitchBootstraps.java index 1ccffaa61bb..d15e701b94d 100644 --- a/src/java.base/share/classes/java/lang/runtime/SwitchBootstraps.java +++ b/src/java.base/share/classes/java/lang/runtime/SwitchBootstraps.java @@ -180,7 +180,7 @@ public final class SwitchBootstraps { * * @throws NullPointerException if any argument is {@code null}, unless noted otherwise * @throws IllegalArgumentException if any element in the labels array is null - * @throws IllegalArgumentException if the invocation type is not a method type of first parameter of a reference type, + * @throws IllegalArgumentException if the invocation type is not a method type of first parameter of a target type, * second parameter of type {@code int} and with {@code int} as its return type * @throws IllegalArgumentException if {@code labels} contains an element that is not of type {@code String}, * {@code Integer}, {@code Long}, {@code Float}, {@code Double}, {@code Boolean},