Issue Details (XML | Word | Printable)

Key: CHAIN-11
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Niall Pemberton
Reporter: Niall Pemberton
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Chain

[Chain] Doesn't Compile under JDK 1.3

Created: 17/Jun/05 08:42 AM   Updated: 02/Jan/08 07:01 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Chain-DispatchCommand.txt 2005-06-17 08:43 AM Niall Pemberton 0.7 kB
Environment:
Operating System: other
Platform: Other

Bugzilla Id: 35390
Resolution Date: 25/May/06 09:30 AM


 Description  « Hide
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)



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #409125 Wed May 24 10:38:54 UTC 2006 niallp Modify DispatchCommand so that it will compile using JDK 1.3 (remove JDK 1.4 method).

JIRA Issue: CHAIN-11
Files Changed
MODIFY /jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/DispatchCommand.java