Author: hlship
Date: Sat Jul 23 16:57:34 2011
New Revision: 1150148

URL: http://svn.apache.org/viewvc?rev=1150148&view=rev
Log:
TAP5-1508: Adjust for change in how checked exceptions propogate up from 
Component.dispatchComponentEvent()

Modified:
    
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/structure/ComponentPageElementImpl.java

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/structure/ComponentPageElementImpl.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/structure/ComponentPageElementImpl.java?rev=1150148&r1=1150147&r2=1150148&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/structure/ComponentPageElementImpl.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/structure/ComponentPageElementImpl.java
 Sat Jul 23 16:57:34 2011
@@ -1143,7 +1143,12 @@ public class ComponentPageElementImpl ex
 
                 if (event.isAborted())
                     return result;
-            } catch (RuntimeException ex)
+            }
+
+            // As with render phase methods, dispatchEvent() can now simply 
throw arbitrary exceptions
+            // (the distinction between RuntimeException and checked Exception 
is entirely in the compiler,
+            // not the JVM).
+            catch (Exception ex)
             {
                 // An exception in an event handler method
                 // while we're trying to handle a previous exception!


Reply via email to