Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
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)
};
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
Jörg Schaible
made changes -
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] |
Done. Removed cycle check in DelegatingInvoker completly. Had to implement an alternative cycle check for HotSwapInvoker.