]
Pedro Ruivo updated ISPN-5335:
------------------------------
Status: Pull Request Sent (was: Reopened)
Git Pull Request:
)
Fix the extended statistic module. It invokes the ComponentRegistry.rewire() that inject
the dependencies again.
The fix only throws the ISE when the cache inject is different from the existing one.
ConfigurationBuilder with custom interceptor leads to shared
interceptor
------------------------------------------------------------------------
Key: ISPN-5335
URL:
https://issues.jboss.org/browse/ISPN-5335
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 7.2.0.Alpha1
Reporter: Radim Vansa
Assignee: Radim Vansa
Fix For: 7.2.0.Final
If ConfigurationBuilder object with defined Interceptor (even through Parser) is reused
in multiple classes, these classes have shared interceptor (which obviously breaks stuff).
You cannot copy the ConfigurationBuilder in any way (such as creating configuration and
reading it again) because the instance is never cloned/created anew.