[ 
http://issues.apache.org/jira/browse/COCOON-1939?page=comments#action_12446657 
] 
            
Alexander Klimetschek commented on COCOON-1939:
-----------------------------------------------

Now it behaves like in the beginning, 2-level inheritance does not work. The 
polymorphic calls do work again.

I resolved the problem by renaming the "top-level" connection from super to 
something else, since I don't need polymorphism there. As long as I don't need 
that, the current system is ok.

I will add some examples soon and add a comment / patch here.

> Stack overflow when inheriting from block that alread inherits from another 
> one
> -------------------------------------------------------------------------------
>
>                 Key: COCOON-1939
>                 URL: http://issues.apache.org/jira/browse/COCOON-1939
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Blocks Framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Alexander Klimetschek
>
> There are problems with the following scenario: I have one Block A, another 
> one B that has A as super-block defined and a third one C that has B as 
> super-block defined.
> The super-relation between B and A works ok, but if you start in C, then 
> forward to B, which in turn wants to forward to block A (all via the 
> block:super: protocol), a stack overflow happens. It looks like he always 
> thinks he is in C, so that block:super: from B will always get to B, thus 
> creating an endless loop.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to