Name: ssT124754 Date: 03/12/2001
java version "1.3.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)
Error messages should be more verbose. For example: when a
java.lang.ArrayIndexOutOfBoundsException is thrown, I'd like the error message
to contain the requested index and the dimensions of the array. When the
java.lang.reflect.Field.set method throws "java.lang.IllegalArgumentException:
field type mismatch", I'd like to know what the name of the field is, what the
expected type is and what the type of the argument of the set method is.
(Review ID: 118599)
======================================================================
java version "1.3.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)
Error messages should be more verbose. For example: when a
java.lang.ArrayIndexOutOfBoundsException is thrown, I'd like the error message
to contain the requested index and the dimensions of the array. When the
java.lang.reflect.Field.set method throws "java.lang.IllegalArgumentException:
field type mismatch", I'd like to know what the name of the field is, what the
expected type is and what the type of the argument of the set method is.
(Review ID: 118599)
======================================================================
- duplicates
-
JDK-4980617 (reflect) include type info in IllegalArgumentException thrown by Field.set()
-
- Closed
-
- relates to
-
JDK-6317508 (reflect) REGRESSION: api/java_lang/reflect/Field/descriptions.html#IntField fails
-
- Closed
-