[infinispan-issues] [JBoss JIRA] (ISPN-6011) ClassCastException in CDI generated keys for JCache

Tristan Tarrant (JIRA) issues at jboss.org
Tue May 17 08:22:08 EDT 2016


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

Tristan Tarrant updated ISPN-6011:
----------------------------------
    Fix Version/s: 9.0.0.Alpha3
                       (was: 9.0.0.Alpha2)


> ClassCastException in CDI generated keys for JCache
> ---------------------------------------------------
>
>                 Key: ISPN-6011
>                 URL: https://issues.jboss.org/browse/ISPN-6011
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 8.1.0.CR1, 8.0.2.Final
>            Reporter: Galder ZamarreƱo
>            Assignee: Galder ZamarreƱo
>             Fix For: 9.0.0.Alpha3
>
>
> When using JCache-annotations the DefaultCacheKeyGenerator exclusively looks at parameter values to form the cache key. Therefore it will be very likely that collissions occur (resulting in difficult to find ClassCastExceptions). The provided patch uses the method- and class names as additionally values to make the cache key more unique.
> Might also add that I am aware that by spec this should not be an issue when no cachename is given (as it should generate a cache using the class-name), but when a cache name is given collissions may occur.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the infinispan-issues mailing list