src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Main.java
changeset 50892 a5557f24b4d4
parent 50566 c0b896fc3f08
child 53023 6879069d9d94
equal deleted inserted replaced
50891:9948ea5ea1af 50892:a5557f24b4d4
   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()) {