Re: Embed E in Java
Kevin Reid <[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
On Oct 21, 2009, at 13:25, Mark Miller wrote: > On Tue, Oct 20, 2009 at 9:17 AM, Kevin Reid <[email protected]> wrote: >> MarkM: Is there a non-historical reason NestedException/ >> NestedThrowable/etc exist instead of using the Java 1.4 >> Throwable.getCause() mechanism? > > Mostly history. The NestedException,.. mechanism predates Java 1.4. > Since it worked, I have never examined the new getCause() API. I do > not know whether or not it would be safe to use instead. I believe I understand it sufficiently well to say that it is safe and appropriate to use instead. I propose to change E-on-Java to replace the Nested* mechanisms (backwards compatibly, i.e. the .leaf() sugar and so on will still exist) with causes. * What is the minimum Java version E-on-Java is intended to require? * Do you have any reason to suspect that getCause() etc. may be less straightforward than it appears? * Do you object to this proposed change for any other reason? -- Kevin Reid <http://switchb.org/kpreid/>