[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: merge File.toURI() from Classpath
From: |
C. Brian Jones |
Subject: |
Re: Patch: merge File.toURI() from Classpath |
Date: |
Tue, 06 Jul 2004 18:39:18 -0400 |
On Tue, 2004-07-06 at 12:22, David Daney wrote:
>
> If don't like the idiom new InternalError().initCause(), then add a
> constructor to InternalError (and perhaps Error also) so that you can
> pass the cause as a constructor parameter.
As pointed out, Classpath does not add to the published, public, API of
the core classes intentionally for compatibility. I too think
RuntimeException would be incorrect in these situations, clearly an
error should be thrown instead that indicates the dire situation the
runtime is now in and the need to fix a potential library bug. The use
of initCause() would seem appropriate if a cause exists.
While applications can recover from many forms (maybe all)
RuntimeExceptions, it is probably impossible to recover from
InternalErrors.
Thanks,
Brian
--
Brian Jones <address@hidden>
signature.asc
Description: This is a digitally signed message part
- Re: Patch: merge File.toURI() from Classpath, Bryce McKinlay, 2004/07/06
- Re: Patch: merge File.toURI() from Classpath, David Daney, 2004/07/06
- Re: Patch: merge File.toURI() from Classpath, Bryce McKinlay, 2004/07/06
- Re: Patch: merge File.toURI() from Classpath, David Daney, 2004/07/06
- Re: Patch: merge File.toURI() from Classpath, Bryce McKinlay, 2004/07/06
- Re: Patch: merge File.toURI() from Classpath, Chris Pickett, 2004/07/06
- Re: Patch: merge File.toURI() from Classpath, David Daney, 2004/07/06
- Re: Patch: merge File.toURI() from Classpath, Bryce McKinlay, 2004/07/06
- Re: Patch: merge File.toURI() from Classpath, Andrew Haley, 2004/07/07
Re: Patch: merge File.toURI() from Classpath,
C. Brian Jones <=
Re: Patch: merge File.toURI() from Classpath, Chris Pickett, 2004/07/06
Re: Patch: merge File.toURI() from Classpath, Stephen Crawley, 2004/07/06
Re: Patch: merge File.toURI() from Classpath, Stephen Crawley, 2004/07/07
Re: Patch: merge File.toURI() from Classpath, Mark Wielaard, 2004/07/11
Re: Patch: merge File.toURI() from Classpath, C. Brian Jones, 2004/07/07