mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
12 lines
308 B
Java
12 lines
308 B
Java
// "Add 'IOException' to catch with 'IndexOutOfBoundsException'" "true-preview"
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
try {
|
|
new File("path").getCanonicalPath();
|
|
} catch (IndexOutOfBoundsException | IOException e) {
|
|
}
|
|
}
|
|
} |