This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Project's RESTful Web Services Node should support SEI | ||
---|---|---|---|
Product: | webservices | Reporter: | kospiotr |
Component: | REST | Assignee: | Milan Kuchtiak <mkuchtiak> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
kospiotr
2014-07-30 22:53:48 UTC
That's interresting. In fact, such a construction is possible. The JAX-RS 2.0 specification says (3.6): =============================================== JAX-RS annotations may be used on the methods and method parameters of a super-class or an implemented interface. Such annotations are inherited by a corresponding sub-class or implementation class method provided that the method and its parameters do not have any JAX-RS annotations of their own. Annotations on a super-class take precedence over those on an implemented interface. The precedence over conflicting annotations defined in multiple implemented interfaces is implementation specific. Note that inheritance of class or interface annotations is not supported. If a subclass or implementation method has any JAX-RS annotations then all of the annotations on the superclass or interface method are ignored. ============================================== The JAX-RS implementation should guarantee the method annotation inheritence, but not the class annotation inheritence, so the @Path annotation, from the example, applied onto the interface, isn't guaranteed to work : @Path("customer") public interface CustomerRestServiceInterface Anyway, Netbeans should support the specification (method annotations inheritence). This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |