ensure class added to the throws list is visible outside of method

IDEA-187595
This commit is contained in:
Anna.Kozlova
2018-03-14 13:26:38 +01:00
parent fb44d01f44
commit 6a9bc6782d
3 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
// "Add exception to method signature" "true"
class C {
interface I { }
public void localException() throws Exception {
class Ex extends Exception { }
class LocalException extends Ex implements I { }
throw new LocalException();
}
}

View File

@@ -0,0 +1,13 @@
// "Add exception to method signature" "true"
class C {
interface I { }
public void localException() {
class Ex extends Exception { }
class LocalException extends Ex implements I { }
throw new LocalE<caret>xception();
}
}