users@jersey.java.net

Re: [Jersey] Inheritance of Annotations and Jersey?

From: Martin Probst <mail_at_martin-probst.com>
Date: Thu, 9 Jul 2009 09:14:54 +0200

> There is a limited form of annotation inheritance, for details see here:
> [...]

I see.

> The issue you are running into is that you have @Produces on the overriding
> method which nullifies the @Path on the overridden method.

It's probably set in stone if it's in the spec now, but this doesn't
seem very useful to me. Having a superclass that defines locations
(paths) and possible actions in abstract methods, and subclasses that
define the media type would have been a nice inheritance use case for
me.

Thanks for the explanation,
Martin