Skip to content

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

Closed
@timeck

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions