< prev index next >
test/langtools/tools/javac/options/modes/SourceTargetTest.java
Print this page
*** 69,79 ****
@Test
void testObsoleteSourceTarget() throws IOException {
writeFile("C.java", "class C { }");
! String[] opts = { "-source", "1.6", "-target", "1.6" };
String[] files = { "C.java" };
runMain(opts, files)
.checkOK()
.checkLog("obsolete");
--- 69,79 ----
@Test
void testObsoleteSourceTarget() throws IOException {
writeFile("C.java", "class C { }");
! String[] opts = { "-source", "1.7", "-target", "1.7" };
String[] files = { "C.java" };
runMain(opts, files)
.checkOK()
.checkLog("obsolete");
< prev index next >