diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java index 618fea5a6..309af370a 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java @@ -184,7 +184,7 @@ public interface CacheStatistics extends Serializable { private long getCount(Map target, Class c, int index) { long[] row = target.get(c); - return (row == null) ? 0 : row[WRITE]; + return (row == null) ? 0 : row[index]; } public Date since() {