Debian Codegraph @

framework/tests/all-systems/Throw.java

raw
1 import java.util.List;
2
3 class Throw {
4 <E extends Exception> void throwTypeVar(E ex) {
5 try {
6 throw ex;
7 } catch (Exception e) {
8 }
9 }
10
11 void throwWildcard(List<? extends Exception> list) {
12 try {
13 throw list.get(0);
14 } catch (Exception e) {
15
16 }
17 }
18 }