--- jsr166/src/main/java/util/HashMap.java 2018/10/01 00:10:53 1.8 +++ jsr166/src/main/java/util/HashMap.java 2018/11/11 16:27:28 1.9 @@ -34,7 +34,7 @@ import java.util.function.BiConsumer; import java.util.function.BiFunction; import java.util.function.Consumer; import java.util.function.Function; -import jdk.internal.misc.SharedSecrets; +// OPENJDK import jdk.internal.access.SharedSecrets; /** * Hash table based implementation of the {@code Map} interface. This @@ -1444,7 +1444,7 @@ public class HashMap extends Abstra // Check Map.Entry[].class since it's the nearest public type to // what we're actually creating. - SharedSecrets.getJavaObjectInputStreamAccess().checkArray(s, Map.Entry[].class, cap); + jsr166.Platform.checkArray(s, Map.Entry[].class, cap); @SuppressWarnings({"rawtypes","unchecked"}) Node[] tab = (Node[])new Node[cap]; table = tab;