Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-270

Validate event handler exceptions against event declaration signature

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • V1Alpha
    • v1m1
    • Controls
    • 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

      Attachments

        Activity

          People

            kentam Kenneth Tam
            kentam Kenneth Tam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: