mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user