JDK-8157110 - Java Issue Tracker
JDK-8157110: Behavioural change with extended ArrayList class. Info. P3Bug ... Implementing a composite iterator, like shown in the below example will work for ...
JDK-8157110: Behavioural change with extended ArrayList class. Info. P3Bug ... Implementing a composite iterator, like shown in the below example will work for ...
import java.util.ArrayList; import java.util.List; public class JavaBugTest {.EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The class should compile with 'p.execute(foo)` inferring 'RuntimeException' as its type argument.
REGRESSION : Last worked in version 8u211. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : package corejava.collection; import java.lang.reflect.Field; import java.util.ArrayList; public class ListImplementation { public static void main(String[] args) throws Exception...
JDK-8151423 : No java.util.ConcurrentModificationException thrown when removing from a java.util.ArrayList in a for-each loop.This is described in the class specification of ArrayList, and similar wording appears in the specification of other core collections, such as HashMap.
But if a number of subsequent changes are made to the items (namely property updates and item removals), then either the SortedList or the FilteredList ends up throwing Exceptions, starting with java.lang.ArrayIndexOutOfBoundsException.