Commit 14d4217b by Keith Seitz Committed by Keith Seitz

Update from classpath trunk:

        * classpath/lib/gnu/classpath/jdwp/value/StringValue.class:
        Regenerate.

        * gnu/classpath/jdwp/value/StringValue.java
        (StringValue): Tag of StringValue is STRING not OBJECT.
        (write): String values are written to the wire as tag byte
        and object ID, not JdwpString.

From-SVN: r125897
parent 67b2a930
2007-07-20 Keith Seitz <keiths@redhat.com>
* classpath/lib/gnu/classpath/jdwp/value/StringValue.class:
Regenerate.
2007-07-20 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/VMVirtualMachine.java (executeMethod):
Update from reference implementation.
* gnu/classpath/jdwp/natVMVirtualMachine.cc (executeMethod):
......
2007-07-20 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/value/StringValue.java
(StringValue): Tag of StringValue is STRING not OBJECT.
(write): String values are written to the wire as tag byte
and object ID, not JdwpString.
2007-07-20 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/processor/ClassTypeCommandSet.java
(executeInvokeMethod): No need to use ValueFactory any more;
MethodResult.getReturnedValue now returns a Value.
......
......@@ -38,7 +38,8 @@ exception statement from your version. */
package gnu.classpath.jdwp.value;
import gnu.classpath.jdwp.JdwpConstants;
import gnu.classpath.jdwp.util.JdwpString;
import gnu.classpath.jdwp.VMIdManager;
import gnu.classpath.jdwp.id.ObjectId;
import java.io.DataOutputStream;
import java.io.IOException;
......@@ -61,7 +62,7 @@ public final class StringValue
*/
public StringValue(String value)
{
super(JdwpConstants.Tag.OBJECT);
super(JdwpConstants.Tag.STRING);
_value = value;
}
......@@ -95,6 +96,8 @@ public final class StringValue
protected void write(DataOutputStream os)
throws IOException
{
JdwpString.writeString(os, _value);
ObjectId oid = VMIdManager.getDefault().getObjectId (_value);
oid.write (os);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment