compose throws list on override: ignore supers of super method, ensure same thrown types do not appear in the list (IDEA-166623)

This commit is contained in:
Anna Kozlova
2017-01-18 11:21:34 +03:00
parent 5a23cba5fa
commit 326ad95830
7 changed files with 82 additions and 8 deletions
@@ -0,0 +1,21 @@
import java.io.FileNotFoundException;
import java.io.IOException;
class Outer {
private interface IA {
void print() throws FileNotFoundException, IOException;
}
private static class A implements IA {
public void print() throws FileNotFoundException, IOException {
}
}
private static class B extends A {
@Override
public void print() throws FileNotFoundException, IOException {
super.print();
}
}
}
@@ -0,0 +1,20 @@
import java.io.FileNotFoundException;
import java.io.IOException;
class Outer {
private interface IA {
void print() throws FileNotFoundException, IOException;
}
private static class A {
public void print() throws FileNotFoundException, IOException {
}
}
private static class B extends A implements IA {
public void print() throws IOException, FileNotFoundException {
}
}
}
@@ -0,0 +1,18 @@
import java.io.FileNotFoundException;
import java.io.IOException;
class Outer {
private interface IA {
void print() throws FileNotFoundException, IOException;
}
private static class A implements IA {
public void print() throws FileNotFoundException, IOException {
}
}
private static class B extends A {
<caret>
}
}
@@ -0,0 +1,18 @@
import java.io.FileNotFoundException;
import java.io.IOException;
class Outer {
private interface IA {
void print() throws FileNotFoundException, IOException;
}
private static class A {
public void print() throws FileNotFoundException, IOException {
}
}
private static class B extends A implements IA {
<caret>
}
}