1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 /** 20 * @author Anton V. Karnachuk 21 */ 22 23 /** 24 * Created on 10.02.2005 25 */ 26 package org.apache.harmony.jpda.tests.jdwp.ClassType; 27 28 import org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer; 29 import org.apache.harmony.jpda.tests.share.SyncDebuggee; 30 31 /** 32 * Common debuggee of some JDWP unit tests for JDWP ClassType command set. 33 */ 34 public class ClassTypeDebuggee extends SyncDebuggee { 35 36 static boolean f_def_bool = false; 37 private static boolean f_pri_bool = false; 38 protected static boolean f_pro_bool = false; 39 public static boolean f_pub_bool = false; 40 41 static final boolean ff_def_bool = false; 42 private static final boolean ff_pri_bool = false; 43 protected static final boolean ff_pro_bool = false; 44 public static final boolean ff_pub_bool = false; 45 46 public static byte f_pub_byte; 47 public static char f_pub_char; 48 public static float f_pub_float = 254.5f; 49 public static double f_pub_double; 50 public static int f_pub_int; 51 public static long f_pub_long; 52 public static short f_pub_short; 53 public static boolean f_pub_boolean; 54 55 @Override 56 public void run() { 57 synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_READY); 58 logWriter.println("ClassTypeDebuggee started"); 59 logWriter.println("DUMP{" + f_pri_bool + ff_pri_bool + "}"); 60 synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_CONTINUE); 61 logWriter.println("ClassTypeDebuggee done"); 62 } 63 64 /** 65 * Starts ClassTypeDebuggee with help of runDebuggee() method 66 * from <A HREF="../../share/Debuggee.html">Debuggee</A> super class. 67 * 68 */ 69 public static void main(String [] args) { 70 runDebuggee(ClassTypeDebuggee.class); 71 } 72 73 }