[
https://issues.jboss.org/browse/ISPN-4535?page=com.atlassian.jira.plugin....
]
Sanne Grinovero commented on ISPN-4535:
---------------------------------------
I'm not sure what should be done, but casting to int is definitely wrong as you will
have larger results.
Would at least be better to log an error rather than throwing a cast exception.
+1 for your idea of a "saturated cast", but it needs to be documented.
Ideally, the API needs to be changed in .next
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
Security Level: Public(Everyone can see)
Components: Loaders and Stores
Reporter: Sanne Grinovero
Assignee: Radim Vansa
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.2.6#6264)