ejb-spec
  1. ejb-spec
  2. EJB_SPEC-20

Application Exceptions as part of a throws clause

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2
    • Labels:
      None

      Description

      The current definition of a throws clause leaves the actual definition of an application exception optional. This should be made more strict by mandating that a throws clause of a checked exception implies that the exception is an application exception.

      EJB 3.1 FR 14.2.1

      The Bean Provider defines application exceptions. Application exceptions that are checked exceptions
      may be defined as such by being listed in the throws clauses of the methods of the bean's business
      interface, no-interface view, home interface, component interface, and web service endpoint.

      Should become:

      The Bean Provider defines application exceptions. Application exceptions that are checked exceptions
      are defined as such by being listed in the throws clauses of the methods of the bean's business
      interface, no-interface view, home interface, component interface, and web service endpoint.

      Note that there are other spots which state the effect of a throws clause.

        Activity

        Hide
        marina vatkina added a comment -

        Thanks for filing. Are there any strings that I can search for to help me identify all the cases?

        Show
        marina vatkina added a comment - Thanks for filing. Are there any strings that I can search for to help me identify all the cases?
        Hide
        marina vatkina added a comment -

        Fixed. Other cases are correct by saying "may be".

        Show
        marina vatkina added a comment - Fixed. Other cases are correct by saying "may be".

          People

          • Assignee:
            marina vatkina
            Reporter:
            Carlo de Wolf
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: