-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
8
FULL PRODUCT VERSION :
java8b92
A DESCRIPTION OF THE PROBLEM :
ArrayList.removeAll(null); previously didn't do anything on empty lists. With Java 8 it throws an exception. Although this adheres to the contract in the JavaDoc it breaks existing code.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
new ArrayList<String>().removeAll(null);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
no NPE
REPRODUCIBILITY :
This bug can be reproduced always.
java8b92
A DESCRIPTION OF THE PROBLEM :
ArrayList.removeAll(null); previously didn't do anything on empty lists. With Java 8 it throws an exception. Although this adheres to the contract in the JavaDoc it breaks existing code.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
new ArrayList<String>().removeAll(null);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
no NPE
REPRODUCIBILITY :
This bug can be reproduced always.
- duplicates
-
JDK-8015656 (coll) unexpected NPE from removeAll causes JavaFX 8 build failure
-
- Closed
-