test/tools/javac/diags/examples/LocalVarNeedsFinal.java

changeset 1415
01c9d4161882
parent 610
3640b60bd0f6
child 2525
2eb010b6cb22
equal deleted inserted replaced
1414:843d3b191773 1415:01c9d4161882
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.local.var.accessed.from.icls.needs.final 24 // key: compiler.err.local.var.accessed.from.icls.needs.final
25 // options: -Xlint:-options -source 7
25 26
26 class LocalVarNeedsFinal { 27 class LocalVarNeedsFinal {
27 Runnable m() { 28 Runnable m() {
28 int i = 3; 29 int i = 3;
29 return new Runnable() { 30 return new Runnable() {

mercurial