[jbosstools-issues] [JBoss JIRA] (JBIDE-11474) Open-on of bean method in EL, sometimes opens overridden method in a superclass

Daniel Azarov (JIRA) jira-events at lists.jboss.org
Thu Apr 19 13:53:17 EDT 2012


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

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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list