mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
ensure class added to the throws list is visible outside of method
IDEA-187595
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user