dev@jsr311.java.net

Re: Inheritance of Java classes

From: Dhanji R. Prasanna <dhanji_at_gmail.com>
Date: Sun, 20 May 2007 02:46:23 +0800

On 5/19/07, Jerome Louvel <jerome.louvel_at_noelios.com> wrote:
>
>
> Hi Dhanji,
>
> > For the identification, the annotation @ResourceRef
> > could be inherited
> > indeed, but if it is overridden in a subclass, the
> > subclass's annotation
> > should have priority.
> >
> > What if it is overridden without any annotation--is that
> > considered a hiding override or an error?
>
> The @ResourceRef annotation is set on the class itself, so a subclass
> without annotation, should inherit the parent annotation.


How about the @Output method? And the various other annotations on methods?
Just curious how you see it playing.

Will go thru the sketch in some more detail real soon.

Dhanji.