--- old/src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Main.java 2017-01-27 16:11:58.874348480 -0800 +++ new/src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Main.java 2017-01-27 16:11:58.802348477 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -101,7 +101,7 @@ // Keep these updated manually until there's a compiler API // that allows querying of supported releases. final Set releasesWithoutForRemoval = Set.of("6", "7", "8"); - final Set releasesWithForRemoval = Set.of("9"); + final Set releasesWithForRemoval = Set.of("9", "10"); final Set validReleases; { @@ -353,14 +353,14 @@ * Process classes from a particular JDK release, using only information * in this JDK. * - * @param release "6", "7", "8", or "9" + * @param release "6", "7", "8", "9", or "10" * @param classes collection of classes to process, may be empty * @return success value */ boolean processRelease(String release, Collection classes) throws IOException { options.addAll(List.of("--release", release)); - if (release.equals("9")) { + if (release.equals("9") || release.equals("10")) { List rootMods = List.of("java.se", "java.se.ee"); TraverseProc proc = new TraverseProc(rootMods); JavaCompiler.CompilationTask task = @@ -484,7 +484,7 @@ String dir = null; String jar = null; String jdkHome = null; - String release = "9"; + String release = "10"; List loadClasses = new ArrayList<>(); String csvFile = null;