Merged new changes from default (manually: src/vm/jit/i386/codegen.c).
[cacao.git] / tests / stack / staticinitializertest.java
1 class staticinitializertest_1 {
2         public static void a() {
3                 System.out.println("***");
4         }
5         static {
6                 String s=null;
7                 s.length();
8         }
9 }
10
11 public class staticinitializertest {
12         public static void a() {
13                 staticinitializertest_1.a();
14         }
15         public static void main(String args[]) {
16                 try {
17                         a();
18                 } catch (Throwable t) {
19                         System.out.println("Ok:Caught an exception");
20                         t.printStackTrace();
21                         System.out.println("Test2:");
22                         a();
23                 }
24                 System.out.println("Error:Should not be reached");
25         }
26 }