Source code: com/chaoswg/xtc4y/test/classloaders/SimpleClass.java
1 //$Header: /cvsroot/xtc4y/xtc4y/src/com/chaoswg/xtc4y/test/classloaders/SimpleClass.java,v 1.3 2003/08/26 12:53:34 toggm Exp $
2 /******************************************************************************
3 * XTC4y - eXtreme Testing Collection 4 you *
4 * -------------------------------------------------------------------------- *
5 * URL: http://www.chaoswg.com/xtc4y *
6 * Author: Mike Toggweiler (2.dog@gmx.ch) *
7 * *
8 * Last Updated: $Date: 2003/08/26 12:53:34 $, by $Author: toggm $ *
9 * Version: $Revision: 1.3 $ *
10 * -------------------------------------------------------------------------- *
11 * COPYRIGHT: (c) 2003 by Mike Toggweiler *
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 *****************************************************************************/
18 package com.chaoswg.xtc4y.test.classloaders;
19
20 /**
21 * This is a simple class for testing purposes
22 * @author Mike Toggweiler
23 **/
24 public class SimpleClass {
25 public SimpleClass() {
26 System.out.println("Construct simple class");
27 }
28
29 public void setName(String name) {
30 System.out.println("Name is:"+name);
31 }
32
33 public String getName() {
34 System.out.println("Return name : testName");
35 return "testName";
36 }
37
38 public void monitor() {
39 Object val = new Object();
40 synchronized (val) {
41 System.out.println("test");
42 }
43 }
44
45 public void wideInstr() {
46 System.out.println("wide:"+((long)3));
47 int i = 40;
48 long i2 = i;
49 long[] la = new long[10];
50 i2 = la[6];
51 }
52
53 public void newArray() {
54 int[] i5 = new int[5];
55 }
56
57 public void multiANew() {
58 int[][] i = new int[6][7];
59 int[][][] i2 = new int[6][7][8];
60 double[][][][] i4 = new double[8][1][2][16];
61 }
62
63 private void privateField() {
64 testHallo = "testHallo";
65 }
66
67 private String testHallo;
68 }