aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test1/FieldInit.java
blob: ee483149a216c7b71deaa46f35b85189d17c87f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package test1;

public class FieldInit {
    public static int counter = 0;
    public static int loop = 3;

    public static int get(Object obj) {
	System.out.println("FieldInit: get");
	return ++counter;
    }

    public FieldInit() {
	do {
	    --loop;
	} while (loop > 0);
    }

    public static class FI {
        public FieldInit fi;
        public FI(FieldInit fi) {
            this.fi = fi;
        }
    }
}