Hi everbody.

While working on MYFACES-2375, I got stuck at the following scenario:

Managed bean m1 has a custom scope #{m2.scope} and managed bean m2 has a
custom scope #{m1.scope}.
In this scenario you will get a StackOverflowException when trying to create
one of the two managed beans.

RI really ends in a StackOverflowException, should MyFaces end in such a
Exception too or detect the cyclic reference and throw an ELException?

Mike Kienenberger told me the following: "We have a precedent set on making
MyFaces proactive on detecting error conditions in the configuration."

The only problem is, that checking the cyclic references would not happen
once at MyFaces startup, but every time a managed bean will be created,
which means it slows down the application.

What is your opinion on this question?
Vote +1, if you think MyFaces should detect cyclic references in the managed
bean scope.

Reply via email to