AbstractReplicatedMap implements entrySet() as follows; public Set entrySet() { LinkedHashSet set = new LinkedHashSet(super.size()); Iterator i = super.entrySet().iterator(); while ( i.hasNext() ) { Map.Entry e = (Map.Entry)i.next(); Object key = e.getKey(); MapEntry entry = (MapEntry)super.get(key); if ( entry != null && entry.isPrimary() ) set.add(entry.getValue()); } return Collections.unmodifiableSet(set); } this returns a set of all the *values*, the line set.add(entry.getValue()) should be set.add(entry);
Thanks for the report. This is fixed in trunk and proposed for 6.0.x
This has been fixed in 6.0.x and will be included in 6.0.17 onwards.