ConcurrentNaturalIdCacheStatisticsImpl#getEntries() fails with ClassCastException

Description

ConcurrentNaturalIdCacheStatisticsImpl#getEntries() fails with ClassCastException. Exception stack trace:

1 2 java.lang.ClassCastException: org.hibernate.cache.spi.NaturalIdCacheKey cannot be cast to org.hibernate.cache.spi.CacheKey at org.hibernate.stat.internal.ConcurrentNaturalIdCacheStatisticsImpl.getEntries(ConcurrentNaturalIdCacheStatisticsImpl.java:148)

Environment

None

Status

Assignee

Lukasz Antoniak

Reporter

Lukasz Antoniak

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

4.3.5

Priority

Minor
Configure