Skip to content
Permalink
Browse files
8206083: Make tools/javac/api/T6265137.java robust to JDK version cha…
…nges

Reviewed-by: mdoerr
Backport-of: 69191fc
  • Loading branch information
RealCLanger committed Jul 21, 2021
1 parent cbce000 commit deba3081744524b1f28f925b027ef6674686f740
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/langtools/tools/javac/api/T6265137.java
@@ -52,7 +52,9 @@ public void report(Diagnostic<? extends JavaFileObject> message) {
String srcdir = System.getProperty("test.src");
Iterable<? extends JavaFileObject> files =
fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(srcdir, "T6265137a.java")));
javac.getTask(null, fm, dl, Arrays.asList("-target","11"), null, files).call();
javac.getTask(null, fm, dl,
Arrays.asList("-target", Integer.toString(Runtime.version().feature())),
null, files).call();
}
}
}

1 comment on commit deba308

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on deba308 Jul 21, 2021

Please sign in to comment.