[weld-issues] [JBoss JIRA] (WELD-1111) Inheritance of member-level metadata for generic types - missing substitution of actual type arguments

Marko Lukša (JIRA) jira-events at lists.jboss.org
Mon Apr 23 05:20:18 EDT 2012


     [ https://issues.jboss.org/browse/WELD-1111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marko Lukša updated WELD-1111:
------------------------------

    Git Pull Request: https://github.com/weld/core/pull/193


This is now fixed for injection points in beans, but still needs to be fixed for injection points in {{InjectionTarget}}s created through {{BeanManager.createInjectionTarget()}}. Currently, {{InjectionPoint}} does not have a reference to the {{AnnotatedType}} used for creating the {{InjectionTarget}} (it only has a reference to the {{Bean}}, but since there's no {{Bean}} here, we don't have the necessary info to resolve any type variables in the type of the injected field).

Martin, maybe you should expand the TCK tests to also check for additional injection point types that must also be resolved according to the spec. Take a look at {{org.jboss.weld.tests.unit.reflection.inheritance.TypeVariableResolverTest}}. Weld should handle all these tricky injection point types, but probably the TCK should also check this?


                
> Inheritance of member-level metadata for generic types - missing substitution of actual type arguments
> ------------------------------------------------------------------------------------------------------
>
>                 Key: WELD-1111
>                 URL: https://issues.jboss.org/browse/WELD-1111
>             Project: Weld
>          Issue Type: Bug
>            Reporter: Martin Kouba
>            Assignee: Marko Lukša
>            Priority: Minor
>
> See the spec *4.2. Inheritance of member-level metadata*.
> {code}
> class Bar<T> {
>     @Inject Baz<T> baz;
> }
> class Foo extends Bar<String> {}
> {code}
> The required type of inherited injection point on {{Foo}} is {{Baz<T>}} but should be {{Baz<String>}}.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the weld-issues mailing list