]
Yeray Borges resolved WFLY-6661.
--------------------------------
Fix Version/s: 12.0.0.Alpha1
Resolution: Duplicate Issue
Bean level lock type not applied
--------------------------------
Key: WFLY-6661
URL:
https://issues.jboss.org/browse/WFLY-6661
Project: WildFly
Issue Type: Bug
Components: EJB
Affects Versions: 10.0.0.Final
Reporter: Keio Kraaner
Fix For: 12.0.0.Alpha1
A singleton EJB has @Lock(LockType.READ) annotation declared on the class level.
The bean is accessed using a local (defined by @Local annotation) or remote (defined by
@Remote annotation) EJB interface.
SingletonComponent::getLockType returns wrong value (LockType.WRITE) because the
beanLevelLockType map does not contain a key equal to the local or remote interface class
name. It contains a key equal to the EJB class name that implements those interfaces.