Spring injection problem when having private fields with the same name in 
parent and child classes
--------------------------------------------------------------------------------------------------

                 Key: STS-669
                 URL: http://www.stripesframework.org/jira/browse/STS-669
             Project: Stripes
          Issue Type: Bug
    Affects Versions: Release 1.5.1, Release 1.5
            Reporter: tran duc trung


class ParentAction implements ActionBean {
    @SpringBean
    private Bean1 bean;

    public void methodOne() {
        // use bean
    }
    ....
}

class ChildAction extends ParentAction {
    @SpringBean
    private Bean2 bean;
    ....
}

NPE is raised on methodOne().

The problem is in method ReflectUtil.getFields(Class<?> clazz), a map based on 
field name is used


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to