Use synchronized blocks for ApplicationImpl _defaultValidatorsIds -----------------------------------------------------------------
Key: MYFACES-2805 URL: https://issues.apache.org/jira/browse/MYFACES-2805 Project: MyFaces Core Issue Type: Improvement Components: JSR-314 Affects Versions: 2.0.0 Reporter: Leonardo Uribe Assignee: Leonardo Uribe Right now we have a ConcurrentHashMap for ApplicationImpl _defaultValidatorsIds, but we are using a _cachedDefaultValidatorsIds too. In this case, it is better to use a synchronized block when default validators are added, but use a double-checked locking using volatile on the cache. Not use a synchronized block causes that getDefaultValidatorInfo() could return not all validators, but note that posibility is unlikely. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.