Setting up inheritance - I
26 July 2008Inherited is a meta-annotation that is complicated as compared to other annotations. It is least-often used.
Let me present a scenarios for better understanding: Suppose that you use your custom annotation called InProgress to mark a class as being in progress.
If the Documented meta-annotation is applied correctly, then this will show up in the Javadoc. All is well till here.
Suppose you write a new class and extend the in-progress class. Now remember one this: the superclass is in progress. What about the subclass? For subclass, there will be no indication even in its documentation, that it is incomplete. One would expect to see the InProgress annotation carried through to subclasses. But its not done here.
Continued …
Related Posts:
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: Setting up inheritance - I