Take a look at this:
Map m = new ConcurrentHashMap();
m.put("foo", "bar");
Iterator i = m.entrySet().iterator();
Map.Entry me = (Map.Entry) i.next();
m.remove("foo"); // in another thread
me.getValue(); // returns null
The JavaDoc:
Like Hashtable but unlike HashMap, this class does NOT allow null to
be used as a key or value.
I'm wondering if there was some way to enhance the documentation so that
people wouldn't assume that Map.Entry.getValue() never returns null.
JBoss bug:
http://jira.jboss.com/jira/browse/JBAS-2973