* .hgignore: Removed tests/regression/codepatching/*.class.
[cacao.git] / tests / stack / nestedconstructorexception.java
1 public class nestedconstructorexception {
2
3         public nestedconstructorexception(int val) throws Throwable {
4                 switch (val) {
5                         case 1:
6                                 nestedconstructorexception y=new nestedconstructorexception(2);
7                                 break;
8                         case 2:
9                                 nestedconstructorexception y1=new nestedconstructorexception(3);
10                                 break;
11                         case 3:
12                                 String a[]=new String[10];
13                                 Object o=new nestedconstructorexception(5);
14                                 a[0]=(String)o;
15                                 break;
16                         default:
17
18                 }
19         }
20
21
22         public static void main (String args[]) {
23                 try {
24                         nestedconstructorexception x=new nestedconstructorexception(1);
25                 } catch (Throwable t) {
26                         t.printStackTrace();
27                 }
28         }
29 }