You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Philippe CLEMENT (JIRA)" <ji...@apache.org> on 2013/06/03 17:45:21 UTC
[jira] [Updated] (KARAF-2352) Blueprint does not find a bean
argument which uses generics
[ https://issues.apache.org/jira/browse/KARAF-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Philippe CLEMENT updated KARAF-2352:
-----------------------------------------
Description:
Interface X<T> is defined.
A class A implements X<JPanel>.
Another class B has a constructor with a single argument X<? extends Component>.
Calling B with A using regular Java code is correct. However, injecting A with B fails with the error that no constructor is found matching A. Even type forcing fails.
If I correct A definition to X<Component> then A can be injected into B.
was:
Interface X<T> is defined.
A class A implements X<JPanel>.
Another class B has a constructor with a single argument X<? extends Component>.
In Java calling B with A is correct. However, injecting A with B fails with the error that no constructor is found matching A. Even type forcing fails.
If I correct A definition to X<Component> then A can be injected into B.
> Blueprint does not find a bean argument which uses generics
> -----------------------------------------------------------
>
> Key: KARAF-2352
> URL: https://issues.apache.org/jira/browse/KARAF-2352
> Project: Karaf
> Issue Type: Bug
> Components: karaf-osgi
> Affects Versions: 2.3.0
> Environment: RHEL5
> Reporter: Jean-Philippe CLEMENT
>
> Interface X<T> is defined.
> A class A implements X<JPanel>.
> Another class B has a constructor with a single argument X<? extends Component>.
> Calling B with A using regular Java code is correct. However, injecting A with B fails with the error that no constructor is found matching A. Even type forcing fails.
> If I correct A definition to X<Component> then A can be injected into B.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira