Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The delegating invoker fails for indirect recursive calls as they might easily occur in a CoR pattern.

      Test case:

      public static interface Faculty

      { int calc(int i, Faculty fac); }

      ;

      public void testShouldSupportIndirectRecursion() {
      Faculty fac = new Faculty() {
      public int calc(int i, Faculty fac)

      { return i == 1 ? 1 : i * fac.calc(i-1, fac); }

      };
      Faculty proxy = (Faculty)Delegating.object(Faculty.class, fac, getFactory());
      assertEquals(120, fac.calc(5, fac));
      assertEquals(120, proxy.calc(5, proxy));
      }

      Issue is related to PTOYS-5

        Activity

        Hide
        Jörg Schaible added a comment -

        Done. Removed cycle check in DelegatingInvoker completly. Had to implement an alternative cycle check for HotSwapInvoker.

        Show
        Jörg Schaible added a comment - Done. Removed cycle check in DelegatingInvoker completly. Had to implement an alternative cycle check for HotSwapInvoker.
        Jörg Schaible made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jörg Schaible
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: