Hi Harald, Looking at the Javadocs of @Inherited, it seems to apply only to annotation of the class declaration itself, but not on method annotations. Do you interpret it differently?
"Indicates that an annotation type is automatically inherited. If an Inherited meta-annotation is present on an annotation type declaration, and the user queries the annotation type on a class declaration, and the class declaration has no annotation for this type, then the class's superclass will automatically be queried for the annotation type. This process will be repeated until an annotation for this type is found, or the top of the class hierarchy (Object) is reached. If no superclass has an annotation for this type, then the query will indicate that the class in question has no such annotation. Note that this meta-annotation type has no effect if the annotated type is used to annotate anything other than a class. Note also that this meta-annotation only causes annotations to be inherited from superclasses; annotations on implemented interfaces have no effect. " We would be happy to make this change as long as we are sure it really helps. Could you make some tests with a local version of Restlet for example? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : Harald Pehl [mailto:[email protected]] Envoyé : mardi 24 novembre 2009 17:32 À : [email protected] Objet : @Get annotation not marked with @Inherited Hi, in my current application I would like to use the @Get annotation to marke the method for GET requests. For security checks I configured an aspect around the @Get method. Doing so, Restlet unfortunately is no longer able to see the @Get annotation in the generated AOP proxy class (which is a subclass of ServerResource). Looking at the @Get annotation I noticed that there's no @Inherited annotation present. As a workaround I cannot use the @Get annotation, but have to override the appropriate methods from ServerResource. Would it be possible to add an @Inherited annotation to the @Get, @Post, ... annotations? Am I the first one facing this problem? For further details see <a href="http://haraldpehl.blogspot.com/2009/11/google-appengine-restlet-securi ty.html">http://haraldpehl.blogspot.com/2009/11/google-appengine-restlet-sec urity.html</a>. Best regards Harald ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24238 79 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2424196

