The portlet Map implementations' entrySet() method currently returns a Set of values, rather than a Set on Map.Entry elements (as per the java.util.Map spec).
This was corrected in the servlet Map implementations in revision 142894 - same changes need to be applied to the portlet varieties:
http://svn.apache.org/viewvc?view=rev&revision=142894