[ http://issues.apache.org/jira/browse/BEEHIVE-270?page=all ] Zach Smith closed BEEHIVE-270: ------------------------------
Exceptions declared on the EventHandler method which are not declared on the corresponding event cause the following error as expected. "Handler method myHelloBeanMessageHandler throws clause is not a proper subset of the eventset methods throws claus. Handlers may only throw throwables declared by the eventset" > 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: v1m1 > > 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
