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

static public and final non-public methods should not be part of the no-interface view and message listener methods for a no-methods message listener interface #102

Closed glassfishrobot closed 11 years ago

glassfishrobot commented 11 years ago

See this interesting discussion: http://java.net/projects/ejb-spec/lists/jsr345-experts/archive/2013-03/message/63

This is the current proposal (similar for the no-methods message listener interface MDBs):

(a) "All non-static public methods of the bean class and of any superclasses except java.lang.Object[ftn] are exposed as business methods."

(b) "Business methods exposed through the no-interface view must not be declared final."

ftn: If toString method is overridden in a subclass, it is exposed as a business method.

Affected Versions

[3.2]

glassfishrobot commented 11 years ago

Reported by mvatkina

glassfishrobot commented 11 years ago

mvatkina said: Changed "no-interface client view representing all public methods of the bean class" to "no-interface client view representing all non-static public methods of the bean class" throughout the document.

Changed rules as follow: 4.9.8 Session Bean's No-Interface View

5.6.5 Message-Driven Bean with No-Methods Listener Interface

I did not add a requirement to restrict non-public method access for the MDBs with no-methods listener interface

glassfishrobot commented 11 years ago

mvatkina said: The 2nd rule should be

"Only private methods of the bean class and any superclasses except java.lang.Object may be declared final."

glassfishrobot commented 11 years ago

mvatkina said: Fixed in rev 59

glassfishrobot commented 11 years ago

Was assigned to mvatkina

glassfishrobot commented 7 years ago

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

glassfishrobot commented 11 years ago

Marked as fixed on Monday, April 8th 2013, 1:14:25 pm