[ 
https://issues.apache.org/jira/browse/TAP5-1765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160989#comment-13160989
 ] 

Howard M. Lewis Ship commented on TAP5-1765:
--------------------------------------------

I was about to dismiss this out of hand, but I realized some optimizations in 
5.3 could account for this; it may be that @Autobuild StringHolderImpl is 
created just once, and then passed to buildStringHolder() each time it is 
invoked from the per thread service lifecycle.
                
> PerThread scope is not honored when service is created using autobuild
> ----------------------------------------------------------------------
>
>                 Key: TAP5-1765
>                 URL: https://issues.apache.org/jira/browse/TAP5-1765
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3
>            Reporter: Denis Stepanov
>            Priority: Critical
>
> Bug is possible to reproduce by modifying IOC test class PerThreadModule:
> from:
>     @Scope(ScopeConstants.PERTHREAD)
>     public StringHolder buildStringHolder()
>     {
>         return new StringHolderImpl();
>     }
> to:
>     @Scope(ScopeConstants.PERTHREAD)
>     public StringHolder buildStringHolder(@Autobuild StringHolderImpl impl)
>     {
>         return impl;
>     }

--
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

        

Reply via email to