--- jsr166/src/main/java/util/ArrayList.java 2018/05/23 05:24:05 1.63 +++ jsr166/src/main/java/util/ArrayList.java 2018/11/11 16:27:28 1.65 @@ -28,7 +28,7 @@ package java.util; import java.util.function.Consumer; import java.util.function.Predicate; import java.util.function.UnaryOperator; -import jdk.internal.misc.SharedSecrets; +// OPENJDK import jdk.internal.access.SharedSecrets; /** * Resizable-array implementation of the {@code List} interface. Implements @@ -92,7 +92,7 @@ import jdk.internal.misc.SharedSecrets; * should be used only to detect bugs. * *

This class is a member of the - * + * * Java Collections Framework. * * @param the type of elements in this list @@ -926,7 +926,7 @@ public class ArrayList extends Abstra if (size > 0) { // like clone(), allocate array based upon size not capacity - SharedSecrets.getJavaObjectInputStreamAccess().checkArray(s, Object[].class, size); + jsr166.Platform.checkArray(s, Object[].class, size); Object[] elements = new Object[size]; // Read in all elements in the proper order.