-
Enhancement
-
Resolution: Fixed
-
P4
-
1.2.2, 1.4.1, 1.4.2
-
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)
======================================================================
- duplicates
-
JDK-4256569 RFE: Need for better error reporting in Beans.instantiate
- Closed
- relates to
-
JDK-6582164 JavaBeans tests should be open source
- Resolved