[
https://issues.apache.org/jira/browse/CAMEL-10812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luca Burgazzoli resolved CAMEL-10812.
-------------------------------------
Resolution: Fixed
> FactoryFinder: make DefaultFactoryFinder and OsgiFactoryFinder thread safe
> --------------------------------------------------------------------------
>
> Key: CAMEL-10812
> URL: https://issues.apache.org/jira/browse/CAMEL-10812
> Project: Camel
> Issue Type: Improvement
> Components: camel-core, camel-osgi
> Reporter: Luca Burgazzoli
> Assignee: Luca Burgazzoli
> Fix For: 2.19.0
>
>
> As today DefaultFactoryFinder (and so OsgiFactoryFinder) caches the classes
> using a ConcurrentMap but then it does not have any synchronization to
> prevent multiple instantiation for the same key.
> As camel requires java 8, we can use compiteIfAbsent to make it thread safe.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)