ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <trel...@gmail.com>
Subject Re: FileUtils.close()
Date Wed, 22 Jun 2005 23:44:15 GMT
IOException is a checked exception, so it has to be specified everywhene. 
BuildException would be a better alternative.

- Alexey.

On 6/22/05, Jesse Glick <jesse.glick@sun.com> wrote:
> 
> Kev Jackson wrote:
> > This came up before, but I forgot what the consensus was
> 
> Not sure there was a consensus (or that anyone cared enough).
> 
> > Whenever FileUtils.close() is used, any resulting exceptions are
> > swallowed and no logging is performed. I'd like to propose that
> > instead of this "silent death" for close, that there is instead a
> > record of what happened, but that the record is voluntary
> 
> That's one option. Another is to just assume the worst and throw the
> IOException from whatever.close() - i.e. don't use FileUtil.close at
> all. This idiom is
> 
> 
> 
-- 
Alexey N. Solofnenko trelony at gmail.com <http://gmail.com>
home: http://trelony.cjb.net/
Pleasant Hill, CA (GMT-8 hours usually)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message