@@ -1208,16 +1208,15 @@ public MethodHandle findSetter(Class<?> refc, String name, Class<?> type) throws
1208
1208
* <ul>
1209
1209
* <li>if the field is declared {@code final}, then the write, atomic
1210
1210
* update, and numeric atomic update access modes are unsupported.
1211
- * <li>if the field type is anything other than {@code int},
1211
+ * <li>if the field type is anything other than {@code boolean},
1212
+ * {@code byte}, {@code short}, {@code char}, {@code int},
1212
1213
* {@code long} or a reference type, then atomic update access modes
1213
1214
* are unsupported. (Future major platform releases of the JDK may
1214
1215
* support additional types for certain currently unsupported access
1215
1216
* modes.)
1216
- * <li>if the field type is anything other than {@code int} or
1217
- * {@code long}, then numeric atomic update access modes are
1218
- * unsupported. (Future major platform releases of the JDK may
1219
- * support additional numeric types for certain currently
1220
- * unsupported access modes.)
1217
+ * <li>if the field type is anything other than {@code byte},
1218
+ * {@code short}, {@code char}, {@code int} or {@code long}, then
1219
+ * numeric atomic update access modes are unsupported.
1221
1220
* </ul>
1222
1221
* <p>
1223
1222
* If the field is declared {@code volatile} then the returned VarHandle
@@ -1306,16 +1305,15 @@ public MethodHandle findStaticSetter(Class<?> refc, String name, Class<?> type)
1306
1305
* <ul>
1307
1306
* <li>if the field is declared {@code final}, then the write, atomic
1308
1307
* update, and numeric atomic update access modes are unsupported.
1309
- * <li>if the field type is anything other than {@code int},
1308
+ * <li>if the field type is anything other than {@code boolean},
1309
+ * {@code byte}, {@code short}, {@code char}, {@code int},
1310
1310
* {@code long} or a reference type, then atomic update access modes
1311
1311
* are unsupported. (Future major platform releases of the JDK may
1312
1312
* support additional types for certain currently unsupported access
1313
1313
* modes.)
1314
- * <li>if the field type is anything other than {@code int} or
1315
- * {@code long}, then numeric atomic update access modes are
1316
- * unsupported. (Future major platform releases of the JDK may
1317
- * support additional numeric types for certain currently
1318
- * unsupported access modes.)
1314
+ * <li>if the field type is anything other than {@code byte},
1315
+ * {@code short}, {@code char}, {@code int} or {@code long}, then
1316
+ * numeric atomic update access modes are unsupported.
1319
1317
* </ul>
1320
1318
* <p>
1321
1319
* If the field is declared {@code volatile} then the returned VarHandle
@@ -1590,16 +1588,15 @@ public MethodHandle unreflectSetter(Field f) throws IllegalAccessException {
1590
1588
* <ul>
1591
1589
* <li>if the field is declared {@code final}, then the write, atomic
1592
1590
* update, and numeric atomic update access modes are unsupported.
1593
- * <li>if the field type is anything other than {@code int},
1591
+ * <li>if the field type is anything other than {@code boolean},
1592
+ * {@code byte}, {@code short}, {@code char}, {@code int},
1594
1593
* {@code long} or a reference type, then atomic update access modes
1595
1594
* are unsupported. (Future major platform releases of the JDK may
1596
1595
* support additional types for certain currently unsupported access
1597
1596
* modes.)
1598
- * <li>if the field type is anything other than {@code int} or
1599
- * {@code long}, then numeric atomic update access modes are
1600
- * unsupported. (Future major platform releases of the JDK may
1601
- * support additional numeric types for certain currently
1602
- * unsupported access modes.)
1597
+ * <li>if the field type is anything other than {@code byte},
1598
+ * {@code short}, {@code char}, {@code int} or {@code long}, then
1599
+ * numeric atomic update access modes are unsupported.
1603
1600
* </ul>
1604
1601
* <p>
1605
1602
* If the field is declared {@code volatile} then the returned VarHandle
@@ -2297,16 +2294,15 @@ MethodHandle arrayElementSetter(Class<?> arrayClass) throws IllegalArgumentExcep
2297
2294
* Certain access modes of the returned VarHandle are unsupported under
2298
2295
* the following conditions:
2299
2296
* <ul>
2300
- * <li>if the component type is anything other than {@code int},
2297
+ * <li>if the field type is anything other than {@code boolean},
2298
+ * {@code byte}, {@code short}, {@code char}, {@code int},
2301
2299
* {@code long} or a reference type, then atomic update access modes
2302
2300
* are unsupported. (Future major platform releases of the JDK may
2303
2301
* support additional types for certain currently unsupported access
2304
2302
* modes.)
2305
- * <li>if the component type is anything other than {@code int} or
2306
- * {@code long}, then numeric atomic update access modes are
2307
- * unsupported. (Future major platform releases of the JDK may
2308
- * support additional numeric types for certain currently
2309
- * unsupported access modes.)
2303
+ * <li>if the component type is anything other than {@code byte},
2304
+ * {@code short}, {@code char}, {@code int} or {@code long}, then
2305
+ * numeric atomic update access modes are unsupported.
2310
2306
* </ul>
2311
2307
* @param arrayClass the class of an array, of type {@code T[]}
2312
2308
* @return a VarHandle giving access to elements of an array
0 commit comments