commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CHAIN-11) [Chain] Doesn't Compile under JDK 1.3
Date Thu, 25 May 2006 02:30:30 GMT
     [ 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message