Github user andymc12 commented on the issue:
https://github.com/apache/cxf/pull/310
Instead of clearing the cache when it reaches the max, could you use a
LinkedHashMap (that overrides `removeEldestEntry` to make it an LRU cache)?
That would remove the least-recently accessed entry, but still keep the rest of
the cache intact. You would need to synchronize it too, but assuming you don't
need to use a WeakHashMap, this might perform better for apps that use a large
number of UriTemplates.
Thanks for finding this and making this change!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---