[ https://issues.apache.org/jira/browse/CXF-7175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15739846#comment-15739846 ]
John D. Ament edited comment on CXF-7175 at 12/11/16 2:46 PM: -------------------------------------------------------------- The funny thing, its probably a bug in the arquillian adapter more than anything. However, section 5.1.4 of CDI 1.2 states: bq. For a custom implementation of the Bean interface defined in The Bean interface, the container calls getBeanClass() to determine the bean class of the bean and InjectionPoint.getMember() and then Member.getDeclaringClass() to determine the class that declares an injection point. CXF is saying the bean class - and as a result the proxy - is {{Bus}} but it should be a concrete implementation. Event 11.1 agrees bq. getBeanClass() returns the bean class of the managed bean or session bean or of the bean that declares the producer method or field. was (Author: johndament): The funny thing, its probably a bug in the arquillian adapter more than anything. However, section 5.1.4 of CDI 1.2 states: bq. For a custom implementation of the Bean interface defined in The Bean interface, the container calls getBeanClass() to determine the bean class of the bean and InjectionPoint.getMember() and then Member.getDeclaringClass() to determine the class that declares an injection point. CXF is saying the bean class - and as a result the proxy - is `Bus` but it should be a concrete implementation. > Wrong class specified for CdiBusBean > ------------------------------------ > > Key: CXF-7175 > URL: https://issues.apache.org/jira/browse/CXF-7175 > Project: CXF > Issue Type: Bug > Components: Integration > Reporter: John D. Ament > > https://github.com/apache/cxf/blob/3.1.x-fixes/integration/cdi/src/main/java/org/apache/cxf/cdi/CdiBusBean.java#L43 > This specifies the wrong class. Since the Bean created is specifically a > {{ExtensionManagerBus}} this should return {{ExtensionManagerBus.class}} not > {{Bus.class}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)