[ http://issues.apache.org/jira/browse/CHAIN-11?page=all ]
Niall Pemberton resolved CHAIN-11:
----------------------------------
Fix Version: 1.1
Resolution: Fixed
> [Chain] Doesn't Compile under JDK 1.3
> -------------------------------------
>
> Key: CHAIN-11
> URL: http://issues.apache.org/jira/browse/CHAIN-11
> Project: Commons Chain
> Type: Bug
> Environment: Operating System: other
> Platform: Other
> Reporter: Niall Pemberton
> Assignee: Niall Pemberton
> Fix For: 1.1
> Attachments: Chain-DispatchCommand.txt
>
> 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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]