[
https://issues.apache.org/jira/browse/OWB-584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Jencks resolved OWB-584.
------------------------------
Resolution: Invalid
Both problems are caused by an error in openejb.
> check for declared name consistency for specializes beans is wrong
> ------------------------------------------------------------------
>
> Key: OWB-584
> URL: https://issues.apache.org/jira/browse/OWB-584
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Inheritance, Specialization
> Affects Versions: 1.1.1
> Reporter: David Jencks
> Assignee: David Jencks
>
> tck tests org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise
> have 3 out of 7 failures caused by this code from
> WebBeansUtil.configureSpecializations:
> if(comp.getName() != null)
> {
> throw new DefinitionException("@Specialized Class : "
> + specializedClass.getName()
> + " may not explicitly declare a bean name");
> }
> First of all, in the debugger, getName is returning the unqualified class
> name rather than the decapitalized unqualified class name as the spec says.
> (3.1.5, 3.2.5)
> Second, in these tests there is no @Named annotation so we're comparing
> default names, which isn't correct. We should be testing for a @Named
> annotation name. (4.3.1:
> If Y has a name and X declares a name explicitly, using @Named, the container
> automatically detects the problem and treats it as a definition error. )
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira