aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features190/efficientTJP/Fields.java
blob: ad1246568cebb92fd8187ea63a0fd0b371706e29 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
public class Fields {
	int a = 1;
	String s = "hello";
	double d = 1.0d;
	boolean b = true;

	short ps = (short)1;
	float fs = 1.0f;
	long ls = 1L;
	byte bs = (byte)3;
	char cs = 'a';


	Inner obj = new Inner();
	static int as = 1;
	static String ss = "hello";
	static double ds = 1.0d;
	static Inner objs = new Inner();

	public static void main(String []argv) {
		Fields f = new Fields();
		int a2 = f.a;
		String s2 = f.s;
		double d2 = f.d;
		Inner obj2 = f.obj;

		short ps2 = f.ps;
		float fs2 = f.fs;
		long ls2 = f.ls;
		byte bs2 = f.bs;
		char cs2 = f.cs;

		int a3 = as;
		String s3 = ss;
		double d3 = ds;
		Inner obj3 = objs;
	}

	static class Inner {}
}

aspect X {
	before(): within(Fields) && get(* *) {
		System.out.println(thisJoinPointStaticPart.getSignature());
	}
}