From 05cd3a7bcee33b07138415d3a8b5f11c4d372e2b Mon Sep 17 00:00:00 2001
From: Doug Lea
Date: Fri, 24 May 2019 08:55:03 -0700
Subject: [PATCH] 8223245: Miscellaneous changes imported from jsr166 CVS
2019-06
Reviewed-by: martin
---
src/java.base/share/classes/java/util/ArrayList.java | 1 +
src/java.base/share/classes/java/util/Vector.java | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/java.base/share/classes/java/util/ArrayList.java b/src/java.base/share/classes/java/util/ArrayList.java
index 2df432f3d69..f0b6b8cc1dc 100644
--- a/src/java.base/share/classes/java/util/ArrayList.java
+++ b/src/java.base/share/classes/java/util/ArrayList.java
@@ -1696,6 +1696,7 @@ public class ArrayList extends AbstractList
@Override
public void replaceAll(UnaryOperator operator) {
replaceAllRange(operator, 0, size);
+ // TODO(8203662): remove increment of modCount from ...
modCount++;
}
diff --git a/src/java.base/share/classes/java/util/Vector.java b/src/java.base/share/classes/java/util/Vector.java
index b3e16680c61..05d671cf804 100644
--- a/src/java.base/share/classes/java/util/Vector.java
+++ b/src/java.base/share/classes/java/util/Vector.java
@@ -1369,6 +1369,7 @@ public class Vector
es[i] = operator.apply(elementAt(es, i));
if (modCount != expectedModCount)
throw new ConcurrentModificationException();
+ // TODO(8203662): remove increment of modCount from ...
modCount++;
}