< prev index next >

test/jdk/tools/launcher/VersionCheck.java

Print this page
*** 77,16 ***
--- 77,18 ---
          "java-rmi",
          "java-rmi.cgi",
          "javadoc",
          "javacpl",
          "javaws",
+         "jextract",
          "jcmd",
          "jconsole",
          "jcontrol",
          "jdeprscan",
          "jdeps",
          "jfr",
+         "jextract",
          "jimage",
          "jinfo",
          "jlink",
          "jmap",
          "jmod",

*** 169,10 ***
--- 171,14 ---
          Set<String> failed = new HashSet<>();
          for (File f : new File(JAVA_BIN).listFiles(new ToolFilter(BLACKLIST_JOPTION))) {
              System.out.println("Testing " + f.getName());
              String x = f.getAbsolutePath();
              String testStr = getVersion(x, "-J-version");
+             if (f.getName().startsWith("jextract")) {
+                 // skip the WARNING: Unknown module: jdk.incubator.jextract specified to --enable-native-access line
+                 testStr = testStr.substring(testStr.indexOf('\n') + 1);
+             }
              if (refVersion.compareTo(testStr) != 0) {
                  failed.add(f.getName());
                  System.out.println("Error: " + x +
                                     " fails -J-version comparison");
                  System.out.println("Expected:");
< prev index next >