Tapestry 5
  1. Tapestry 5
  2. TAP5-1765

PerThread scope is not honored when service is created using autobuild

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.3.1, 5.4
    • Component/s: tapestry-ioc
    • Labels:
      None

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

        Activity

        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Howard M. Lewis Ship [ hlship ]
        Fix Version/s 5.3.1 [ 12319156 ]
        Fix Version/s 5.4 [ 12316401 ]
        Resolution Fixed [ 1 ]
        Howard M. Lewis Ship made changes -
        Priority Critical [ 2 ] Minor [ 4 ]
        Denis Stepanov made changes -
        Field Original Value New Value
        Description 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}
        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;
            }
        Denis Stepanov created issue -

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Denis Stepanov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development