1/* /nodynamiccopyright/ hard coded linenumbers in other tests - DO NOT CHANGE
2 * Debuggee which exercises various reference types
3 */
4
5abstract class AllAbstract {
6    abstract void a();
7    abstract void b();
8    abstract void c();
9}
10
11class AllNative {
12    native void a();
13    native void b();
14    native void c();
15}
16
17abstract class Abstract {
18    abstract void a();
19    void b() {
20        int x = 1;
21        int y = 2;
22        System.out.println("x + y = " + x + y);
23        return;
24    }
25}
26
27class Native {
28    native void a();
29    void b() {
30        int x = 1;
31        int y = 2;
32        System.out.println("x + y = " + x + y);
33        return;
34    }
35}
36
37abstract class AbstractAndNative {
38    abstract void a();
39    native void b();
40    void c() {
41        int x = 1;
42        int y = 2;
43        System.out.println("x + y = " + x + y);
44        return;
45    }
46}
47
48interface Interface {
49    void a();
50    void b();
51    void c();
52}
53
54interface InterfaceWithCode {
55    String foo = new String("foo");
56}
57
58public class RefTypes {
59    static void loadClasses() throws ClassNotFoundException {
60        Class.forName("AllAbstract");
61        Class.forName("AllNative");
62        Class.forName("Abstract");
63        Class.forName("Native");
64        Class.forName("AbstractAndNative");
65        Class.forName("Interface");
66        Class.forName("InterfaceWithCode");
67    }
68
69    public static void main(String args[]) throws Exception {
70        loadClasses();
71    }
72}
73