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

RFE: Need for better error reporting in Beans.instantiate

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.2
    • client-libs
    • generic
    • generic

      Name: rlT66838 Date: 07/22/99


      In Beans.instantiate, the following code:

      throw new ClassNotFoundException("" + cl + " : " + ex);

      should read:

      throw new ClassNotFoundException("" + cl + " : " + ex, ex);

      i.e., using the better constructor for the error so that the
      line number of the error in the init code of the class shows
      up in the backtrace.
      (Review ID: 88132)
      ======================================================================

            malenkov Sergey Malenkov (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: