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
This commit is contained in:
Keith Seitz 2007-06-20 20:35:22 +00:00 committed by Keith Seitz
parent 67b2a930fd
commit 14d4217b59
4 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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):

View File

@ -1,3 +1,10 @@
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

View File

@ -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);
}
}