blob: b639c810f06d0c1b76d7c020960d91941b872b82 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/* /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}