< prev index next >

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

Print this page

        

@@ -104,11 +104,11 @@
 
     // 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> releasesWithForRemoval = Set.of("9", "10", "11", "12");
 
     final Set<String> validReleases;
     {
         Set<String> temp = new HashSet<>(releasesWithoutForRemoval);
         temp.addAll(releasesWithForRemoval);

@@ -494,11 +494,11 @@
         LoadMode loadMode = LoadMode.RELEASE;
         ScanMode scanMode = ScanMode.ARGS;
         String dir = null;
         String jar = null;
         String jdkHome = null;
-        String release = "11";
+        String release = Integer.toString(Runtime.version().feature());
         List<String> loadClasses = new ArrayList<>();
         String csvFile = null;
 
         try {
             while (!args.isEmpty()) {
< prev index next >