[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] [FYI/JDWP] Fix ObjectReferenceCommandSet
From: |
Aaron Luchko |
Subject: |
[cp-patches] [FYI/JDWP] Fix ObjectReferenceCommandSet |
Date: |
Fri, 12 Aug 2005 21:00:18 -0400 |
Fixed ObjectReferenceCommandSet to use MethodResult instead of
MethodInvoker.
Aaron
ChangeLog
2005-08-12 Aaron Luchko <address@hidden>
* gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java
(executeInvokeMethod): Change MethodInvoker to MethodResult.
Index: gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java
===================================================================
RCS
file:
/cvsroot/classpath/classpath/gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java,v
retrieving revision 1.2
diff -u -p -r1.2 ObjectReferenceCommandSet.java
--- gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java 27 Jul
2005 16:01:43 -0000 1.2
+++ gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java 13 Aug
2005 00:57:00 -0000
@@ -1,4 +1,4 @@
-/* ObjectReferenceCommandSet.java -- lass to implement the
ObjectReference
+/* ObjectReferenceCommandSet.java -- class to implement the
ObjectReference
Command Set
Copyright (C) 2005 Free Software Foundation
@@ -50,7 +50,7 @@ import gnu.classpath.jdwp.id.IdManager;
import gnu.classpath.jdwp.id.ObjectId;
import gnu.classpath.jdwp.id.ReferenceTypeId;
import gnu.classpath.jdwp.util.Value;
-import gnu.classpath.jdwp.util.MethodInvoker;
+import gnu.classpath.jdwp.util.MethodResult;
import java.io.DataOutputStream;
import java.io.IOException;
@@ -232,14 +232,14 @@ public class ObjectReferenceCommandSet i
nonVirtual = true;
else
nonVirtual = false;
- MethodInvoker vmi = new MethodInvoker(vm);
- vmi.executeMethod(obj, thread, clazz, method, values, nonVirtual);
- Object value = vmi.getReturnedValue();
- ObjectId exceptionId = vmi.getExceptionId();
+ MethodResult mr = vm.executeMethod(obj, thread, clazz, method,
values, nonVirtual);
+ Object value = mr.getReturnedValue();
+ Exception exception = mr.getThrownException();
+ ObjectId eId = idMan.getId(exception);
Value.writeTaggedValue(os, value);
- exceptionId.writeTagged(os);
+ eId.writeTagged(os);
}
private void executeDisableCollection(ByteBuffer bb, DataOutputStream
os)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] [FYI/JDWP] Fix ObjectReferenceCommandSet,
Aaron Luchko <=