make the debugging support code compile under JDK 1.3

This commit is contained in:
Shu Lei
2007-10-10 00:26:23 +00:00
parent edea16fb91
commit 8eab291c9b
21 changed files with 454 additions and 80 deletions

View File

@@ -29,10 +29,16 @@ import java.net.ServerSocket;
import java.net.Socket;
public class DebugSupport implements DebugEventListener {
public enum State {
UNKNOWN,
RUNNING,
STOPPED
public static class State extends EnumType {
private static final long serialVersionUID = 3657364516937093612L;
public static final State UNKNOWN = new State("UNKNOWN", 0);
public static final State RUNNING = new State("RUNNING", 1);
public static final State STOPPED = new State("STOPPED", 2);
public State(String name, int ordinal) {
super(name, ordinal);
}
}
protected DebugRequestListener listener;