[
http://www.stripesframework.org/jira/browse/STS-712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter closed STS-712.
--------------------------
> ActionBeanContext has a bogus toString
> --------------------------------------
>
> Key: STS-712
> URL: http://www.stripesframework.org/jira/browse/STS-712
> Project: Stripes
> Issue Type: Bug
> Components: Context Management
> Affects Versions: Release 1.5.1
> Environment: java 1.6
> Reporter: Rusty Wright
> Assignee: Frederic Daoud
> Fix For: Release 1.5.2, Release 1.6
>
>
> If I use the built in toString and subclass ActionBeanContext, when I log the
> ActionBeanContext I get
> DEBUG: 10:44:14,021:
> com.objecteffects.sample.web.action.TestStartActionBean.submitTest(TestStartActionBean.java:77):
> context: ActionBeanContext{eventName='submit', validationErrors={}}
> But it's telling me that it's the wrong class. My ActionBeanContext
> subclasses my abstract BaseActionBeanContext;
> class StartActionBeanContextFake extends BaseActionBeanContext {
> When I add toString to my BaseActionBeanContext:
> import org.apache.commons.lang.builder.ReflectionToStringBuilder;
> ...
> @Override
> public String toString() {
> return (new ReflectionToStringBuilder(this).toString());
> }
> Then the log message shows the correct class:
> DEBUG: 10:48:34,460:
> com.objecteffects.sample.web.action.TestStartActionBean.submitTest(TestStartActionBean.java:77):
> context:
> com.objecteffects.sample.web.action.startactionbeancontextf...@4865ce[desireddate=com.objecteffects.sample.domain.desireddate@d3c6a3[year=2009,month=2,day=3],request=net.sourceforge.stripes.controller.stripesrequestwrap...@1d95da8,response=net.sourceforge.stripes.mock.mockhttpservletrespo...@193f6e2,servletcontext=net.sourceforge.stripes.mock.mockservletcont...@1385660,eventName=submit,validationErrors={}]
> This is important when you're testing and you need to be sure that the
> correct ActionBeanContext class was used.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development