[ http://issues.apache.org/jira/browse/BEEHIVE-270?page=all ]
     
Kenneth Tam resolved BEEHIVE-270:
---------------------------------

    Resolution: Fixed

Fixed as of rev 164678, we now enforce compatibility of throws clauses and 
return types between handlers and event methods.


> Validate event handler exceptions against event declaration signature
> ---------------------------------------------------------------------
>
>          Key: BEEHIVE-270
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-270
>      Project: Beehive
>         Type: Bug
>   Components: Controls
>     Versions: V1Alpha
>     Reporter: Kenneth Tam
>     Assignee: Kenneth Tam
>     Priority: Minor
>      Fix For: V1

>
> Do tighter validation of declared exceptions on an event handler... they 
> can't throw any check exception not declared on the associated event.  For 
> example if the event is declared:
> public void onCreate();
> then the following is illegal:
> @EventHandler( field="x", event="onCreate" )
> public void handleOnCreate() throws Exception

-- 
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