Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8253455: Record Classes javax.lang.model changes #291

Closed
Closed
Original file line number Diff line number Diff line change
@@ -105,13 +105,17 @@ public void testQualifiedClassForProcessing(Path base) throws Exception {
tb.writeJavaFiles(r,
"record R(int i) {}");

List<String> expected = List.of(
"Note: field: i",
"Note: record component: i");
List<String> expected = List.of("Note: field: i",
"Note: record component: i",
"Note: testQualifiedClassForProcessing" + File.separator + "src" + File.separator
+ "R" + File.separator + "R.java uses preview language features.",
"Note: Recompile with -Xlint:preview for details.");

for (Mode mode : new Mode[] {Mode.API}) {
List<String> log = new JavacTask(tb, mode)
.options("-processor", QualifiedClassForProcessing.class.getName())
.options("-processor", QualifiedClassForProcessing.class.getName(),
"--enable-preview",
"-source", Integer.toString(Runtime.version().feature()))
.files(findJavaFiles(src))
.outdir(classes)
.run()