[ https://issues.apache.org/jira/browse/OWB-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17693471#comment-17693471 ]
Mark Struberg commented on OWB-1426: ------------------------------------ No, this test in the TCK is imo clearly wrong. {source} class MyBean<T> implements MyInterface interface MyInterface extends MySuperInterface<Number> {source} The TCK test assumes {{MySuperInterface.class}} but we correctly do have the parameterized type {{MySuperInterface<Number>}}, which is correct according to the Java Lang Spec as not erasure kicks in. Note that we correctly DO erase types for example <T> in MyBean which ends up as MyBean.class in the type list. For for {{MySuperInterface<Number>}} there is just no erasure!. > Missing bean types for indirectly implemented interfaces > -------------------------------------------------------- > > Key: OWB-1426 > URL: https://issues.apache.org/jira/browse/OWB-1426 > Project: OpenWebBeans > Issue Type: Bug > Components: Core, TCK > Reporter: Jean-Louis Monteiro > Priority: Major > Fix For: 4.0.0 > > > The following TCK test is failing in OWB and I think it's a good one from the > spec point of view. > > {color:#067d17}org.jboss.cdi.tck.tests.definition.bean.BeanDefinitionTest{color} > > The spec says > [https://jakarta.ee/specifications/cdi/4.0/jakarta-cdi-spec-4.0.html#managed_bean_types] > > {quote}The unrestricted set of bean types for a managed bean contains the > bean class, every superclass and all interfaces it implements directly or > indirectly. > The resulting set of bean types for a managed bean consists only of [legal > bean > types|https://jakarta.ee/specifications/cdi/4.0/jakarta-cdi-spec-4.0.html#legal_bean_types], > all other types are removed from the set of bean types. > Note the additional restrictions upon bean types of beans with normal scopes > defined in [Unproxyable bean > types|https://jakarta.ee/specifications/cdi/4.0/jakarta-cdi-spec-4.0.html#unproxyable]. > {quote} -- This message was sent by Atlassian Jira (v8.20.10#820010)