ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs PreSetDefTest.java
Date Fri, 24 Sep 2004 13:56:44 GMT
> -----Original Message-----
> From: peterreilly@apache.org [mailto:peterreilly@apache.org]
> 
>   +* Incorrect task name with invalid "javac" task after a "presetdef.
>   +  Bugzilla reports 31389 and 29499.

I'm not too fond of the setMessage() method on the new exceptions,
which forces to duplicate the immutable msg of all execeptions.

Why not use exception chaining, and rethrow a new exception that
nests the old one, adding higher-level info like the context in
which the attribute/element was unsupported?

I don't like mutable exceptions... --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message