Beehive
  1. Beehive
  2. BEEHIVE-270

Validate event handler exceptions against event declaration signature

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: V1Alpha
    • Fix Version/s: v1m1
    • Component/s: Controls
    • Labels:
      None

      Description

      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

        Activity

        Kenneth Tam created issue -
        Steve Tocco made changes -
        Field Original Value New Value
        Fix Version/s V1 [ 10780 ]
        Kenneth Tam made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Zach Smith made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Kenneth Tam
            Reporter:
            Kenneth Tam
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development