If a method does not throw an Exception, do not add it.  I think the child
method must not throw anything other than those Exceptions declared in the
overridden method.  But if the compiler is not complaining, leave it the way
it is.

I think interfaces require matching Exception lists.  But it may not be
necessary when extending a class.

----- Original Message -----
From: Diethelm Guallar, Gonzalo <[EMAIL PROTECTED]>
To: 'Turbine' <[EMAIL PROTECTED]>
Sent: Tuesday, August 29, 2000 1:42 PM
Subject: Missing throw spec


> In samples/screens/Testlink.java there is a class
> that extends WebMacroSiteScreen. However, its
> doBuildTemplate() method does not throw anything,
> and in the base class it throws Exception. Is this
> ok, or should the throw spec be added?
>
>
> --
> Gonzalo A. Diethelm
> [EMAIL PROTECTED]
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to