Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4980617

(reflect) include type info in IllegalArgumentException thrown by Field.set()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.4.0
    • core-libs
    • None

      ^G^XThe java.lang.reflect.Field.set(Object, Object) method throws an
      IllegalArgumentException if the first Object argument is not an instance of the
      class or interface declaring the field, or if the second Object argument is
      incompatible with the field type. Currently the IllegalArgumentException
      message string is left blank. Including information about the expected and
      incompatible argument types in the exception message string would make stack
      traces resulting from such failures more informative.

            iris Iris Clark
            mwarressunw Michael Warres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: