langtools/test/tools/javac/T6794959.java
author jlahoda
Tue, 16 Aug 2016 16:43:00 +0200
changeset 40504 0a01f6710c84
parent 30713 4a01965154be
permissions -rw-r--r--
8078561: Error message should be generated once when -source 6 is specified Summary: Code to avoid duplicated errors about features not supported in the current source level moved to Log Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1866
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     1
/*
30713
4a01965154be 8068464: Group 10d: golden files for tests in tools/javac dir
sogoel
parents: 5520
diff changeset
     2
 * @test /nodynamiccopyright/
1866
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     3
 * @bug 6794959
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     4
 * @summary add new switch -XDexpectKeys=key,key,...
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     5
 * @compile T6794959.java
30713
4a01965154be 8068464: Group 10d: golden files for tests in tools/javac dir
sogoel
parents: 5520
diff changeset
     6
 * @compile/fail/ref=T6794959a.out -XDrawDiagnostics  -XDfailcomplete=java.lang.String T6794959.java
1866
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     7
 * @compile -XDfailcomplete=java.lang.String -XDexpectKeys=compiler.err.cant.resolve.location T6794959.java
30713
4a01965154be 8068464: Group 10d: golden files for tests in tools/javac dir
sogoel
parents: 5520
diff changeset
     8
 * @compile/fail/ref=T6794959b.out -XDrawDiagnostics -XDexpectKeys=compiler.err.cant.resolve.location T6794959.java
1866
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
     9
 */
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    10
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    11
class T6794959 {
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    12
    String s;
734286a0cc38 6794959: add new switch -XDexpectKeys=key,key....
jjg
parents:
diff changeset
    13
}