mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 17:51:09 +07:00
23 lines
536 B
Java
23 lines
536 B
Java
class A {
|
|
void foo() {
|
|
String s = null;
|
|
try {
|
|
s = "1";
|
|
int invisibleOutsideTry = newMethod();
|
|
s = s + invisibleOutsideTry;
|
|
} catch (Exception e) {
|
|
System.out.println("ex " + s);
|
|
}
|
|
System.out.println("ok " + s);
|
|
}
|
|
|
|
private int newMethod() throws Exception {
|
|
int invisibleOutsideTry = 1 + 1;
|
|
bar();
|
|
return invisibleOutsideTry;
|
|
}
|
|
|
|
private void bar() throws Exception {
|
|
throw new Exception();
|
|
}
|
|
} |