--- a/jdk/src/share/classes/java/beans/MetaData.java Wed Jul 09 15:25:38 2008 +0400
+++ b/jdk/src/share/classes/java/beans/MetaData.java Wed Jul 09 19:29:07 2008 +0400
@@ -650,7 +650,7 @@
// Remove the new elements.
// Do this first otherwise we undo the adding work.
if (newMap != null) {
- for ( Object newKey : newMap.keySet() ) {
+ for (Object newKey : newMap.keySet().toArray()) {
// PENDING: This "key" is not in the right environment.
if (!oldMap.containsKey(newKey)) {
invokeStatement(oldInstance, "remove", new Object[]{newKey}, out);