Thanks for doing this. I like the performance enhancement, but you need
to change one thing to conform to the new spec, which has been vetted by
EG discussion so I don't want to change it.
>>>>> On Mon, 08 Nov 2004 20:48:04 -0600, Jacob Hookom <jacob_at_hookom.net> said:
JH> *Note* New implementation does scope exception catching on a
JH> per-PhaseListener where the previous implementation was scoped on
JH> before/after phase. I would like to propose not catching at all since
JH> the API does not specify any exceptions to be thrown on beforePhase or
JH> afterPhase. Also, all the tests ran successfully with the one change to
JH> TestLifeCycleImpl in leu of changes to exception scoping.
JH> Issue #66
JH> Performance Enhancements to LifeCycleImpl
JH> SECTION: Changes
JH> M src/com/sun/faces/lifecycle/LifecycleImpl.java
JH> - Used ArrayList cloning to prevent lengthy synchronization blocks.
JH> - Exceptions from PhaseListeners will not prevent other pertinent
JH> listeners from being fired.
JH> M test/com/sun/faces/lifecycle/TestLifecycleImpl.java
JH> - In leu of the changes to exception handling, all registered listeners
JH> will be called, even if 'b' throws an exception.
This test must remain unchanged since it accurately tests that the
implementation conforms to the spec. For example.
If there are three phaseListeners installed, A, B, C. If B throws an
exception on beforePhase, only A must be called on afterPhase.
Can you produce a version of your change that has the good performance
properties, but continues to allow TestLifeCycleImpl to execute
unchanged?
Thanks,
Ed
--
| ed.burns_at_sun.com | {home: 407 294 2468, office: 408 884 9519 OR x31640}
| homepage: | http://javaweb.sfbay.sun.com/~edburns/
| aim: edburns0sunw | iim: ed.burns_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net