Github user reta commented on a diff in the pull request:

    https://github.com/apache/cxf/pull/154#discussion_r73816714
  
    --- Diff: 
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ResourceUtils.java 
---
    @@ -939,21 +939,29 @@ public static boolean isValidResourceClass(Class<?> 
c) {
             }
             return true;
         }
    -    
    +
    +    public static ApplicationPath locateApplicationPath(Class<?> appClass) 
{
    +        ApplicationPath appPath = 
appClass.getAnnotation(ApplicationPath.class);
    +        if (appPath == null && appClass.getSuperclass() != 
Application.class) {
    --- End diff --
    
    I may be wrong here, but solving issue proxies we are going against JAX-RS 
2.0 spec:
    ```
    3.6 Annotation Inheritance
    ... Note that inheritance of class or interface annotations is not 
supported. ...
    ```
    
    Does it make sense to limit the scope by identifying the particular use 
case that CXF dials with proxy (may be using Proxy.isProxyClass or alike) and 
only then fall back to super class hierarchy?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to