20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 // key: compiler.err.foreach.not.supported.in.source |
24 // key: compiler.err.foreach.not.supported.in.source |
25 // options: -source 1.4 |
25 // options: -source 1.4 -Xlint:-options |
26 |
26 |
27 class ForeachNotSupported { |
27 class ForeachNotSupported { |
28 void m(String[] args) { |
28 void m(String[] args) { |
29 for (String a: args) { |
29 for (String a: args) { |
30 System.out.println(a); |
30 System.out.println(a); |