> -----Original Message-----
> From: Leo Simons [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 10 April, 2001 10:11
> To: Avalon Development
> Subject: [vote] lifecycle exceptions
>
>
> proposal:
> For 4.0 of the framework code, CascadingException
> is updated to extend RuntimeException,

-1 on this extending RuntimeException
we are in alpha - i.e. now is the time to make the change

> and new exceptions
> are created for all lifecycle methods except run(), stop()
> and dispose().

+1

> So:
> contextualize() throws ContextualizationException

+1

> init() throws InitializationException

+1, but prefer initilize() throws InitializationException

> etc.
>
> For:
> - existing code has already proven the exceptions are
>   neccessary. We need to add them.
> - making use of RuntimeException means that existing code
>   will be able to compile and run if the exceptions are
>   not actually thrown.

true but my feeling is that this only pushes the problem out into the future
when the impact of change will be higher

> - since the lifecycle exceptions are indeed (almost
>   always) runtime exceptions, this setup is also
>   correct.

but this ignores the fact that runtime exceptions do not need to be declared
or exclicity caught at build time

> Against:
> - a significant body of existing code that uses avalon will
>   have to be updated to work with the new release (OTOH, it
>   will be a lot more work to change this later).

this is my feeling to, now is the time to change it

> - does Cocoon2 have the time to update to this before the
>   beta? (if not, I propose the same change for 4.1)
>
> cheers!
>
> LSD


Steve.


> <java:sig>
>       About LSD  = new PersonalInfo();
>       LSD.name("Leo Simons");
>       LSD.email("[EMAIL PROTECTED]");
>       LSD.URL( [
>               http://www.leosimons.com, // personal website
>               http://www.atfantasy.com, // fantasy RPG portal
>               http://www.the-sign.nl    // web-design company
>       ] );
>       LSD.quote("Buh!");
>       email.setSig((String)LSD);
> </java:sig>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to