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

Beans.instantiate() does not preserve nested exception

XMLWordPrintable

    • tiger
    • generic
    • generic



      Name: skT45625 Date: 06/06/2000

      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)


      The following code in Beans.instantiate()

      } catch (Exception ex) {
         // We have to remap the exception to one in our signature.
         // But we pass extra information in the detail message.
         throw new ClassNotFoundException("" + cl + " : " + ex);
      }

      should read (note ", ex" added at end) as below

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

      so that the location (e.g., line number) of the nested error is
      preserved for later stack dumps.
      (Review ID: 105784)
      ======================================================================

            mdavidsosunw Mark Davidson (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: