aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/InnerAccess.java
blob: 5d58f6eafeb155dde2efc1822855f14a7a635d25 (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
import org.aspectj.testing.Tester;

import java.util.*;

public class InnerAccess {
    public static void main(String[] args) {
	Tester.checkEqual(new C().getCount(), 2);
    }
}


class C {
    protected int i = 2;
    private String s = "hi";

    public int getCount() {
	return new Object() {
		public int m() {
		    return s.length();
		}
	    }.m();
    }
}


class D implements Map.Entry {
}