[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-6387) Type of a method parameter is null in case of generic method.
Max Rydahl Andersen (JIRA)
jira-events at lists.jboss.org
Mon Jun 14 06:30:54 EDT 2010
[ https://jira.jboss.org/browse/JBIDE-6387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Rydahl Andersen updated JBIDE-6387:
---------------------------------------
Fix Version/s: 3.2.0.M1
(was: 3.2.x)
> Type of a method parameter is null in case of generic method.
> -------------------------------------------------------------
>
> Key: JBIDE-6387
> URL: https://jira.jboss.org/browse/JBIDE-6387
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: cdi (jsr-299)
> Affects Versions: 3.2.x
> Reporter: Alexey Kazakov
> Assignee: Viacheslav Kabanovich
> Fix For: 3.2.0.M1
>
>
> For example:
> class FarmBroken <U> {
> @Inject
> public <T extends Animal> void setAnimal(T animal) {
>
> }
> @Inject
> public void setMan(U man) {
> }
> }
> setMan(U man) has a parameter U man. And IParameter returns IParametedType which is not null.
> But setAnimal(T animal) has a parameter which is type variable declared in the generic method. And IParameter.getType() returns null. It's not ok. It should return IParametedType with a signature==QT; and IType == null.
> org.jboss.tools.cdi.core.test.tck.InjectionPointTest.testMethodParameter() should pass.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list