[infinispan-issues] [JBoss JIRA] (ISPN-5335) ConfigurationBuilder with custom interceptor leads to shared interceptor

Pedro Ruivo (JIRA) issues at jboss.org
Wed Apr 1 13:03:18 EDT 2015


     [ https://issues.jboss.org/browse/ISPN-5335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pedro Ruivo updated ISPN-5335:
------------------------------
              Status: Pull Request Sent  (was: Reopened)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/3346, https://github.com/infinispan/infinispan/pull/3355  (was: https://github.com/infinispan/infinispan/pull/3346)


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.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the infinispan-issues mailing list