You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Kenneth Tam (JIRA)" <be...@incubator.apache.org> on 2005/02/10 08:00:12 UTC

[jira] Created: (BEEHIVE-270) Validate event handler exceptions against event declaration signature

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
 Assigned to: Kenneth Tam 
    Priority: Minor


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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-270) Validate event handler exceptions against event declaration signature

Posted by "Kenneth Tam (JIRA)" <be...@incubator.apache.org>.
     [ 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


[jira] Updated: (BEEHIVE-270) Validate event handler exceptions against event declaration signature

Posted by "Steve Tocco (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-270?page=history ]

Steve Tocco updated BEEHIVE-270:
--------------------------------

    Fix Version: V1

moving to v1 (if not needed for ship, please move to Fix For = TBD)

> 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira