[
https://issues.jboss.org/browse/ISPN-4535?page=com.atlassian.jira.plugin....
]
Tristan Tarrant commented on ISPN-4535:
---------------------------------------
That's what the JDK does for Map:
public interface Map<K,V> {
// Query Operations
/**
* Returns the number of key-value mappings in this map. If the
* map contains more than <tt>Integer.MAX_VALUE</tt> elements, returns
* <tt>Integer.MAX_VALUE</tt>.
*
* @return the number of key-value mappings in this map
*/
int size();
size() operator on JPACacheStore should expect larger than int
--------------------------------------------------------------
Key: ISPN-4535
URL:
https://issues.jboss.org/browse/ISPN-4535
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Reporter: Sanne Grinovero
the return type of the CacheStore#size() is int but it's common in databases to store
way more.
The query performing the count operation is doing a cast to integer, this will fail.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)