[infinispan-issues] [JBoss JIRA] (ISPN-4535) size() operator on JPACacheStore should expect larger than int
Radim Vansa (JIRA)
issues at jboss.org
Thu Jul 17 12:40:30 EDT 2014
[ https://issues.jboss.org/browse/ISPN-4535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985999#comment-12985999 ]
Radim Vansa commented on ISPN-4535:
-----------------------------------
The CacheStore API is set, nothing but int can be returned. Do you recommend rather saturated cast? (anything greater than INT_MAX will become INT_MAX)
> 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)
More information about the infinispan-issues
mailing list