mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
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:
+21
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -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 {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+18
@@ -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>
|
||||
}
|
||||
}
|
||||
+18
@@ -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>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user