javaee / ejb-spec

See javax.ejb project for API. Contains legacy issues only.
https://github.com/javaee/javax.ejb
6 stars 1 forks source link

Application Exceptions as part of a throws clause #20

Closed glassfishrobot closed 13 years ago

glassfishrobot commented 13 years ago

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.

glassfishrobot commented 13 years ago

Reported by wolfc

glassfishrobot commented 13 years ago

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

glassfishrobot commented 13 years ago

mvatkina said: Fixed. Other cases are correct by saying "may be".

glassfishrobot commented 13 years ago

Was assigned to mvatkina

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA EJB_SPEC-20

glassfishrobot commented 13 years ago

Marked as fixed on Thursday, September 22nd 2011, 4:50:55 pm