JDK-4256569 : RFE: Need for better error reporting in Beans.instantiate
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 1.2.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-07-23
  • Updated: 2007-08-22
  • Resolved: 2007-08-22
Related Reports
Duplicate :  
Relates :  
Description
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) 
======================================================================

Comments
EVALUATION This is a good point. There are a couple of instances in Beans which could benefit from more information. ###@###.### 2001-12-10
10-12-2001