[ https://issues.apache.org/jira/browse/CXF-7229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15837694#comment-15837694 ]
Romain Manni-Bucau commented on CXF-7229: ----------------------------------------- yep, assume you have MyEntity which is proxied and the proxy lib has the awesome idea to remove annotation (or not propagate them to the proxy which is 50% of the impl for good and bad reasons). You will do: {code} return entities.find(1); // returns MyEntity proxy {code} then you hit the referenced method (https://github.com/apache/cxf/blob/master/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java#L1400) which calls getRealClassFromClass which calls getRealClassFromClassInternal which bypasses any unwrapper logic (https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/common/util/ClassHelper.java#L60) since getRealClass(Bus bus, Object o) is not used. Also think it would be better to pass the bus in that call just in case the thread local is not set > ClassHelper usages not replacable by ClassUnwrapper > --------------------------------------------------- > > Key: CXF-7229 > URL: https://issues.apache.org/jira/browse/CXF-7229 > Project: CXF > Issue Type: Bug > Reporter: Romain Manni-Bucau > > ClassUnwrapper and ClassHelper are pretty close and for an app setting a > single one should be enough (in particular cause ClassHelper overriding is > hacky) > Spotted org.apache.cxf.jaxrs.utils.InjectionUtils#getRawResponseClass for > instance -- This message was sent by Atlassian JIRA (v6.3.4#6332)