Skip to main content

[ejb-spec issues] [JIRA] Commented: (EJB_SPEC-104) Certain illegal invocations of methods on a bean class local view cannot be detected.

  • From: "marina vatkina (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [ejb-spec issues] [JIRA] Commented: (EJB_SPEC-104) Certain illegal invocations of methods on a bean class local view cannot be detected.
  • Date: Thu, 4 Apr 2013 19:39:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


    [ 
http://java.net/jira/browse/EJB_SPEC-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=360438#action_360438
 ] 

marina vatkina commented on EJB_SPEC-104:
-----------------------------------------

Will change the "non-final" rule to: "Only private methods of the bean class 
and any superclasses may be declared final."

Will also add both restrictions to the message listener methods with a 
no-methods interface. 

> Certain illegal invocations of methods on a bean class local view cannot be 
> detected.
> -------------------------------------------------------------------------------------
>
>                 Key: EJB_SPEC-104
>                 URL: http://java.net/jira/browse/EJB_SPEC-104
>             Project: ejb-spec
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Jozef Hartinger
>            Assignee: marina vatkina
>            Priority: Blocker
>             Fix For: 3.2
>
>
> Section 3.4.4 says:
> {quote}Only public methods of the bean class and of any superclasses except 
> the java.lang.Object, may be invoked through the no-interface view. 
> Attempted invocations of methods with any other access modifiers via the 
> no-interface view reference must result in the 
> javax.ejb.EJBException.{quote}
> Since a method with another access modifier (let's say a protected method) 
> may be declared final I cannot see a way the container could reliably use a 
> proxy to wrap the method invocation. Since the container cannot wrap the 
> invocation, there is not way for container to detect the attempted 
> invocation and throw javax.ejb.EJBException - which the spec requires.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[ejb-spec issues] [JIRA] Created: (EJB_SPEC-104) Certain illegal invocations of methods on a bean class local view cannot be detected.

Jozef Hartinger (JIRA) 04/04/2013

[ejb-spec issues] [JIRA] Commented: (EJB_SPEC-104) Certain illegal invocations of methods on a bean class local view cannot be detected.

marina vatkina (JIRA) 04/04/2013

[ejb-spec issues] [JIRA] Updated: (EJB_SPEC-104) Certain illegal invocations of methods on a bean class local view cannot be detected.

marina vatkina (JIRA) 04/04/2013

[ejb-spec issues] [JIRA] Commented: (EJB_SPEC-104) Certain illegal invocations of methods on a bean class local view cannot be detected.

marina vatkina (JIRA) 04/04/2013

[ejb-spec issues] [JIRA] Resolved: (EJB_SPEC-104) Certain illegal invocations of methods on a bean class local view cannot be detected.

marina vatkina (JIRA) 04/08/2013
 
 
Close
loading
Please Confirm
Close