diff -r fb37aa6b305e -r 5ae43433d158 jdk/src/share/classes/java/util/AbstractCollection.java --- a/jdk/src/share/classes/java/util/AbstractCollection.java Tue May 07 11:31:08 2013 -0700 +++ b/jdk/src/share/classes/java/util/AbstractCollection.java Tue May 07 12:05:52 2013 -0700 @@ -368,6 +368,7 @@ * @see #contains(Object) */ public boolean removeAll(Collection c) { + Objects.requireNonNull(c); boolean modified = false; Iterator it = iterator(); while (it.hasNext()) { @@ -401,6 +402,7 @@ * @see #contains(Object) */ public boolean retainAll(Collection c) { + Objects.requireNonNull(c); boolean modified = false; Iterator it = iterator(); while (it.hasNext()) {