struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (WW-3748) s:bean doesn't allow creation of beans from a spring object factory using the bean's id
Date Wed, 29 Feb 2012 15:15:58 GMT

     [ https://issues.apache.org/jira/browse/WW-3748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart closed WW-3748.
-----------------------------

    Resolution: Fixed
      Assignee: Lukasz Lenart

Right, thanks for patch and clarification!
                
> s:bean doesn't allow creation of beans from a spring object factory using the bean's
id
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3748
>                 URL: https://issues.apache.org/jira/browse/WW-3748
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.1.1
>         Environment: linux, jdk 1.6
>            Reporter: David Mansfield
>            Assignee: Lukasz Lenart
>            Priority: Minor
>             Fix For: 2.3.2
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> on core/src/main/java/org/apache/struts2/components/Bean.java line 128:
>             bean = objectFactory.buildBean(ClassLoaderUtil.loadClass(beanName, getClass()),
stack.getContext());
> Shouldn't this be:
>             bean = objectFactory.buildBean(beanName, stack.getContext(), false);
> The factory knows how to get a Class from a String as well as anyone, but the "name"
is not necessarily a class name when the bean is the id of a spring bean.
> This affects s:bean tag.
> AFAICT all versions are affected (just checked svn trunk).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message