Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Operating System: other
Platform: Other
-
35390
Description
Chain doesn't compile under JDK 1.3 because the DispatchCommand uses the
InvocationTargetException.getCause() method introduced in JDK 1.4. This is a
result of the change to DispatchCommand in Revison 178565:
http://svn.apache.org/viewcvs.cgi?rev=178565&view=rev
I suggest changing to use the getTargetException() method.
Theres also a bug introduced in this revision, since it tests whether the
IllegalArgumentException is an Exception (which it always will be) rather than
the "cause" being an Exception (which it might not be):
if (e instanceof Exception)
Should be
if (e.getCause() instanceof Exception)