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

Beans.instantiate() does not preserve nested exception

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic
    • OS:
      generic

      Description



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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: