mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
11 lines
273 B
Java
11 lines
273 B
Java
// "Add 'IOException' to catch with 'IndexOutOfBoundsException'" "true-preview"
|
|
import java.io.File;
|
|
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
try {
|
|
new File("path").getCanonical<caret>Path();
|
|
} catch (IndexOutOfBoundsException e) {
|
|
}
|
|
}
|
|
} |