DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35390>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35390

           Summary: [Chain] Doesn't Compile under JDK 1.3
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: chain
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to