< prev index next >

src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Main.java

Print this page

        

*** 104,114 **** // Valid releases need to match what the compiler supports. // Keep these updated manually until there's a compiler API // that allows querying of supported releases. final Set<String> releasesWithoutForRemoval = Set.of("6", "7", "8"); ! final Set<String> releasesWithForRemoval = Set.of("9", "10"); final Set<String> validReleases; { Set<String> temp = new HashSet<>(releasesWithoutForRemoval); temp.addAll(releasesWithForRemoval); --- 104,114 ---- // Valid releases need to match what the compiler supports. // Keep these updated manually until there's a compiler API // that allows querying of supported releases. final Set<String> releasesWithoutForRemoval = Set.of("6", "7", "8"); ! final Set<String> releasesWithForRemoval = Set.of("9", "10", "11"); final Set<String> validReleases; { Set<String> temp = new HashSet<>(releasesWithoutForRemoval); temp.addAll(releasesWithForRemoval);
*** 356,373 **** /** * Process classes from a particular JDK release, using only information * in this JDK. * ! * @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<String> classes) throws IOException { options.addAll(List.of("--release", release)); ! if (release.equals("9") || release.equals("10")) { List<String> rootMods = List.of("java.se", "java.se.ee"); TraverseProc proc = new TraverseProc(rootMods); JavaCompiler.CompilationTask task = compiler.getTask(null, fm, this, // options --- 356,374 ---- /** * Process classes from a particular JDK release, using only information * in this JDK. * ! * @param release "6", "7", "8", "9", "10", or "11" * @param classes collection of classes to process, may be empty * @return success value */ boolean processRelease(String release, Collection<String> classes) throws IOException { options.addAll(List.of("--release", release)); ! if (release.equals("9") || release.equals("10") || ! release.equals("11")) { List<String> rootMods = List.of("java.se", "java.se.ee"); TraverseProc proc = new TraverseProc(rootMods); JavaCompiler.CompilationTask task = compiler.getTask(null, fm, this, // options
*** 479,489 **** LoadMode loadMode = LoadMode.RELEASE; ScanMode scanMode = ScanMode.ARGS; String dir = null; String jar = null; String jdkHome = null; ! String release = "10"; List<String> loadClasses = new ArrayList<>(); String csvFile = null; try { while (!args.isEmpty()) { --- 480,490 ---- LoadMode loadMode = LoadMode.RELEASE; ScanMode scanMode = ScanMode.ARGS; String dir = null; String jar = null; String jdkHome = null; ! String release = "11"; List<String> loadClasses = new ArrayList<>(); String csvFile = null; try { while (!args.isEmpty()) {
< prev index next >