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

Add more information to reflection-related exception detail messages

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 6
    • 1.3.0, 1.4.0
    • hotspot
    • b49
    • generic
    • generic

      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)
      ======================================================================

            duke J. Duke
            ssultanasunw Shaheen Sultana (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: