add exception to existing catch: ensure qNames are adjusted

This commit is contained in:
Anna.Kozlova
2018-03-29 16:11:08 +02:00
parent 71875dc334
commit 34ef66e51c
3 changed files with 11 additions and 6 deletions
@@ -1,10 +1,11 @@
// "Add exception to existing catch clause" "true"
import java.io.File;
import java.io.IOException;
class Test {
public static void main(String[] args) {
try {
throw new IOException();
new File("path").getCanonicalPath();
} catch (IndexOutOfBoundsException | IOException e) {
}
}
@@ -1,10 +1,10 @@
// "Add exception to existing catch clause" "true"
import java.io.IOException;
import java.io.File;
class Test {
public static void main(String[] args) {
try {
throw new IOException<caret>();
new File("path").getCanonical<caret>Path();
} catch (IndexOutOfBoundsException e) {
}
}