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

Denis Stepanov updated TAP5-1765:
---------------------------------

    Description: 
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;
    }


  was:
Bug is possible to reproduce by modifying IOC test class PerThreadModule:

from:
{code:java}
    @Scope(ScopeConstants.PERTHREAD)
    public StringHolder buildStringHolder()
    {
        return new StringHolderImpl();
    }
{code} 

to:
{code:java}
    @Scope(ScopeConstants.PERTHREAD)
    public StringHolder buildStringHolder(@Autobuild StringHolderImpl impl)
    {
        return impl;
    }
{code} 

    
> 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