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() { |