mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
fix dfa offset management when handling possible exceptions in finally
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import java.io.*;
|
||||
|
||||
class Foo {
|
||||
|
||||
public void read() {
|
||||
try {
|
||||
final FileInputStream input = new FileInputStream(new File("foo"));
|
||||
try {
|
||||
}
|
||||
finally {
|
||||
input.close();
|
||||
}
|
||||
}
|
||||
catch (FileNotFoundException ignored) {
|
||||
}
|
||||
catch (IOException e) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user