]
Daniel Azarov resolved JBIDE-11474.
-----------------------------------
Assignee: Viacheslav Kabanovich (was: Daniel Azarov)
Resolution: Done
verified
Open-on of bean method in EL, sometimes opens overridden method in a
superclass
-------------------------------------------------------------------------------
Key: JBIDE-11474
URL:
https://issues.jboss.org/browse/JBIDE-11474
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: CDI, common/jst/core
Affects Versions: 3.3.0.Beta1
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.Beta3
EXECUTE: Create beans
{code}
public class TestBeanA {
public String getId() {
return "bean a";
}
}
public class TestBeanB extends TestBeanA {
@Override
public String getId() {
return "bean b";
}
}
@Named("test")
public class TestBeanC extends TestBeanB {
@Override
public String getId() {
return "bean c";
}
}
{code}
EXECUTE: Insert into a page EL #{test.id}
ASSERT: open-on from 'id' should select TestBeanC.getId().
FAILURE: Method getId() from a super class is selected.
Note: If the issue is not reproduced with this exact steps, try more classes or change
the hierarchy, e.g. TestBeanB -> TestBeanC -> TestBeanA instead TestBeanC ->
TestBeanB -> TestBeanA (always move @Named("test") to the last class in new
hierarchy).
This issue is related to JBIDE-11473, because problem is in sorting of types in method
TypeInfoCollector.collectInfo(boolean).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: