diff options
author | Keith Seitz <keiths@redhat.com> | 2007-02-28 21:32:34 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2007-02-28 21:32:34 +0000 |
commit | a8e912b79b9a5d21248fb8964f1263eb6fdaa4f4 (patch) | |
tree | 426adb80e135205427638e347ed276eb14087cbd /gnu/classpath | |
parent | 8ac19708cb86b3f458b75caf8c120cbbec889902 (diff) | |
download | classpath-a8e912b79b9a5d21248fb8964f1263eb6fdaa4f4.tar.gz |
* gnu/classpath/jdwp/processor/MethodCommandSet.java
(executeLineTable): Use ReferenceTypeId instead of
ClassReferenceTypeId.
(executeVariableTable): Likewise.
(executeVariableTableWithGeneric): Fix error message.
* gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java
(executeSignatureWithGeneric): Fix error message.
(executeFieldWithGeneric): Likewise.
(executeMethodsWithGeneric): Likewise.
* gnu/classpath/jdwp/processor/StackFrameCommandSet.java
(executeGetValues): Use ThreadId instead of ObjectId.
(executeSetValues): Likewise.
(executeThisObject): Likewise.
Diffstat (limited to 'gnu/classpath')
-rw-r--r-- | gnu/classpath/jdwp/processor/MethodCommandSet.java | 12 | ||||
-rw-r--r-- | gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java | 8 | ||||
-rw-r--r-- | gnu/classpath/jdwp/processor/StackFrameCommandSet.java | 16 |
3 files changed, 17 insertions, 19 deletions
diff --git a/gnu/classpath/jdwp/processor/MethodCommandSet.java b/gnu/classpath/jdwp/processor/MethodCommandSet.java index dcfe7a6fc..64956e847 100644 --- a/gnu/classpath/jdwp/processor/MethodCommandSet.java +++ b/gnu/classpath/jdwp/processor/MethodCommandSet.java @@ -1,5 +1,5 @@ /* MethodCommandSet.java -- class to implement the Method Command Set - Copyright (C) 2005, 2006 Free Software Foundation + Copyright (C) 2005, 2006, 2007 Free Software Foundation This file is part of GNU Classpath. @@ -43,7 +43,7 @@ import gnu.classpath.jdwp.VMMethod; import gnu.classpath.jdwp.exception.JdwpException; import gnu.classpath.jdwp.exception.JdwpInternalErrorException; import gnu.classpath.jdwp.exception.NotImplementedException; -import gnu.classpath.jdwp.id.ClassReferenceTypeId; +import gnu.classpath.jdwp.id.ReferenceTypeId; import gnu.classpath.jdwp.util.LineTable; import gnu.classpath.jdwp.util.VariableTable; @@ -99,8 +99,7 @@ public class MethodCommandSet private void executeLineTable(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { - ClassReferenceTypeId refId - = (ClassReferenceTypeId) idMan.readReferenceTypeId(bb); + ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); VMMethod method = VMMethod.readId(clazz, bb); @@ -111,8 +110,7 @@ public class MethodCommandSet private void executeVariableTable(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { - ClassReferenceTypeId refId - = (ClassReferenceTypeId) idMan.readReferenceTypeId(bb); + ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); VMMethod method = VMMethod.readId(clazz, bb); @@ -143,7 +141,7 @@ public class MethodCommandSet { // We don't have generics yet throw new NotImplementedException( - "Command SourceDebugExtension not implemented."); + "Command VariableTableWithGeneric not implemented."); } } diff --git a/gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java b/gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java index b76143f92..c46b2bdfa 100644 --- a/gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java +++ b/gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java @@ -1,6 +1,6 @@ /* ReferenceTypeCommandSet.java -- class to implement the ReferenceType Command Set - Copyright (C) 2005, 2006 Free Software Foundation + Copyright (C) 2005, 2006, 2007 Free Software Foundation This file is part of GNU Classpath. @@ -314,7 +314,7 @@ public class ReferenceTypeCommandSet { // We don't have generics yet throw new NotImplementedException( - "Command SourceDebugExtension not implemented."); + "Command SignatureWithGeneric not implemented."); } private void executeFieldWithGeneric(ByteBuffer bb, DataOutputStream os) @@ -322,7 +322,7 @@ public class ReferenceTypeCommandSet { // We don't have generics yet throw new NotImplementedException( - "Command SourceDebugExtension not implemented."); + "Command executeFieldWithGeneric not implemented."); } private void executeMethodsWithGeneric(ByteBuffer bb, DataOutputStream os) @@ -330,6 +330,6 @@ public class ReferenceTypeCommandSet { // We don't have generics yet throw new NotImplementedException( - "Command SourceDebugExtension not implemented."); + "Command executeMethodsWithGeneric not implemented."); } } diff --git a/gnu/classpath/jdwp/processor/StackFrameCommandSet.java b/gnu/classpath/jdwp/processor/StackFrameCommandSet.java index ee940a493..d62f5d783 100644 --- a/gnu/classpath/jdwp/processor/StackFrameCommandSet.java +++ b/gnu/classpath/jdwp/processor/StackFrameCommandSet.java @@ -1,5 +1,5 @@ /* StackFrameCommandSet.java -- class to implement the StackFrame Command Set - Copyright (C) 2005 Free Software Foundation + Copyright (C) 2005, 2007 Free Software Foundation This file is part of GNU Classpath. @@ -45,7 +45,7 @@ import gnu.classpath.jdwp.VMVirtualMachine; import gnu.classpath.jdwp.exception.JdwpException; import gnu.classpath.jdwp.exception.JdwpInternalErrorException; import gnu.classpath.jdwp.exception.NotImplementedException; -import gnu.classpath.jdwp.id.ObjectId; +import gnu.classpath.jdwp.id.ThreadId; import gnu.classpath.jdwp.util.Value; import java.io.DataOutputStream; @@ -98,8 +98,8 @@ public class StackFrameCommandSet private void executeGetValues(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { - ObjectId tId = idMan.readObjectId(bb); - Thread thread = (Thread) tId.getObject(); + ThreadId tId = (ThreadId) idMan.readObjectId(bb); + Thread thread = tId.getThread(); // Although Frames look like other ids they are not. First they are not // ObjectIds since they don't exist in the users code. Storing them as an @@ -123,8 +123,8 @@ public class StackFrameCommandSet private void executeSetValues(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { - ObjectId tId = idMan.readObjectId(bb); - Thread thread = (Thread) tId.getObject(); + ThreadId tId = (ThreadId) idMan.readObjectId(bb); + Thread thread = tId.getThread(); long frameID = bb.getLong(); VMFrame frame = VMVirtualMachine.getFrame(thread, frameID); @@ -141,8 +141,8 @@ public class StackFrameCommandSet private void executeThisObject(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { - ObjectId tId = idMan.readObjectId(bb); - Thread thread = (Thread) tId.getObject(); + ThreadId tId = (ThreadId) idMan.readObjectId(bb); + Thread thread = tId.getThread(); long frameID = bb.getLong(); VMFrame frame = VMVirtualMachine.getFrame(thread, frameID); |