equal
deleted
inserted
replaced
104 |
104 |
105 // Valid releases need to match what the compiler supports. |
105 // Valid releases need to match what the compiler supports. |
106 // Keep these updated manually until there's a compiler API |
106 // Keep these updated manually until there's a compiler API |
107 // that allows querying of supported releases. |
107 // that allows querying of supported releases. |
108 final Set<String> releasesWithoutForRemoval = Set.of("6", "7", "8"); |
108 final Set<String> releasesWithoutForRemoval = Set.of("6", "7", "8"); |
109 final Set<String> releasesWithForRemoval = Set.of("9", "10", "11"); |
109 final Set<String> releasesWithForRemoval = Set.of("9", "10", "11", "12"); |
110 |
110 |
111 final Set<String> validReleases; |
111 final Set<String> validReleases; |
112 { |
112 { |
113 Set<String> temp = new HashSet<>(releasesWithoutForRemoval); |
113 Set<String> temp = new HashSet<>(releasesWithoutForRemoval); |
114 temp.addAll(releasesWithForRemoval); |
114 temp.addAll(releasesWithForRemoval); |
494 LoadMode loadMode = LoadMode.RELEASE; |
494 LoadMode loadMode = LoadMode.RELEASE; |
495 ScanMode scanMode = ScanMode.ARGS; |
495 ScanMode scanMode = ScanMode.ARGS; |
496 String dir = null; |
496 String dir = null; |
497 String jar = null; |
497 String jar = null; |
498 String jdkHome = null; |
498 String jdkHome = null; |
499 String release = "11"; |
499 String release = Integer.toString(Runtime.version().feature()); |
500 List<String> loadClasses = new ArrayList<>(); |
500 List<String> loadClasses = new ArrayList<>(); |
501 String csvFile = null; |
501 String csvFile = null; |
502 |
502 |
503 try { |
503 try { |
504 while (!args.isEmpty()) { |
504 while (!args.isEmpty()) { |