add api for obtaining annotations declared on super types #368

Open
thradec opened this Issue Dec 6, 2013 · 8 comments

Projects

None yet

4 participants

Member
thradec commented Dec 6, 2013

No description provided.

@tombentley tombentley was assigned Dec 6, 2013
Member

@thradec have you seen ceylon/ceylon-spec#914 ? Would your use case work with that solution too?

Member
thradec commented Mar 26, 2014

@tombentley I think, it will work.

Member

Then is it OK with you to close this issue?

Member
thradec commented Mar 26, 2014

yes

@thradec thradec closed this Mar 26, 2014
Member

I'm going to reopen this because although ceylon/ceylon-spec#914 will work for @thradec's case I still think it's useful to be easily able to get the inherited annotations (when the annotation class isn't inherited). I think the semantics should be the same, so an optional annotation on a subclass should override, and a sequenced annotation should append.

Concretely, this issue would add NestableDeclaration.inheritedAnnotations().

@tombentley tombentley reopened this Apr 22, 2014
@tombentley tombentley added this to the 1.1 milestone Apr 22, 2014
Owner
FroMage commented May 16, 2014

How do you decide what the set of inherited annotations look like then? What constitutes overriding and stuff?

Is this just for classes like in Java or also interfaces? Is this also for actual member declarations?

Owner

You would need to be able to mark an annotation as inherited, like in Java, I guess.

Owner

Not for 1.1

@gavinking gavinking modified the milestone: 1.2, 1.1 Jun 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment