Skip to content

org.jsr107.tck.management.CacheMBStatisticsBeanTest.testPutIfAbsent() #63

Description

@timeck

This test asserts that neither the "hit" or "miss" counts are affected by two Cache.putIfAbsent() operations

The spec lists this however (page 131):

operation Puts Removals Hits Misses
boolean putIfAbsent(K key, V value) Yes No Yes Yes

I am of the opinion that the first putIfAbsent() would count as both a "put" and a "miss", and the second call would record a "hit" in the cache statistics

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions