[
https://issues.jboss.org/browse/AS7-2853?page=com.atlassian.jira.plugin.s...
]
Ondřej Chaloupka commented on AS7-2853:
---------------------------------------
getCallerPrincipal is not allowed to be called in EJB2 entity bean in methods ejbActivate
and ejbPassivate (EJB3.1 8.5.6). Now it's allowed and no exception is thrown.
Change of test location for:
https://github.com/ochaloup/jboss-as/tree/JBQA-5483-test-migration-getcal...
Calling getCallerPrincipal should not be permitted on lifecycle
methods - on @PreDestroy is allowed
---------------------------------------------------------------------------------------------------
Key: AS7-2853
URL:
https://issues.jboss.org/browse/AS7-2853
Project: Application Server 7
Issue Type: Bug
Reporter: Ondřej Chaloupka
Assignee: Stuart Douglas
Calling method on getCallerPrincipal should cause throwing IllegalStateException (EJB3.1
17.2.5) on lifecycle methods @PostConstruct, @PreDestroy but it returns anonymous identity
role on @PreDestroy annotated method.
Test could be found:
https://github.com/ochaloup/jboss-as/blob/JBQA-5451-test-migration-getcal...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira