get rid of the stream parsing that occurs in the Layer III decoder. BitStream.readFra...
[IRC.git] / Robust / src / Tests / StaticTest.java
1 class StaticTester {
2   static int i; // = 47;
3   
4   static {
5     i = 47;
6   }
7   
8   public StaticTester() {}
9 }
10
11 class Incrementable {
12   static void increment() { StaticTester.i++; }
13   
14   public Incrementable() {}
15 }
16
17 public class StaticTest{
18   public StaticTest() {
19   }
20
21   public static void main(String[] st) {
22     //StaticTester.i = 47;
23     StaticTester st1 = new StaticTester();
24     StaticTester st2 = new StaticTester();
25     System.printString("static i: "+StaticTester.i+"\n");
26     System.printString("st1 i: "+st1.i+"\n");
27     System.printString("st2 i: "+st2.i+"\n");
28     
29     Incrementable incr = new Incrementable();
30     incr.increment();
31     System.printString("static i: "+StaticTester.i+"\n");
32     System.printString("st1 i: "+st1.i+"\n");
33     System.printString("st2 i: "+st2.i+"\n");
34     
35     Incrementable.increment();
36     System.printString("static i: "+StaticTester.i+"\n");
37     System.printString("st1 i: "+st1.i+"\n");
38     System.printString("st2 i: "+st2.i+"\n");
39   }
40 }