You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Pinaki Poddar (JIRA)" <ji...@apache.org> on 2010/10/05 23:49:35 UTC

[jira] Commented: (OPENJPA-1801) CacheStatistics misses are improperly calculated.

    [ https://issues.apache.org/jira/browse/OPENJPA-1801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918238#action_12918238 ] 

Pinaki Poddar commented on OPENJPA-1801:
----------------------------------------

from JavaDoc of CacheStatistics

 * All methods with Class as input argument treats null as 
 * <code>java.lang.Object</code>. All per-class statistics  depends on 
 * determining the runtime type of the instance being cached. If it is not
 * possible to determine the runtime type from the given context, the statistics
 * is registered under generic <code>java.lang.Object</code>. 
 * 
 * @since 1.3.0


> CacheStatistics misses are improperly calculated.
> -------------------------------------------------
>
>                 Key: OPENJPA-1801
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1801
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache
>    Affects Versions: 2.0.1, 2.1.0
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>             Fix For: 2.1.0
>
>
> In doing some testing I found that the DataCache statistics aren't calculated properly. In the case where there is a cache miss for a specific Type(Person.class), a miss (a read with no subsequent hit) is recorded for java.lang.Object.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.