2007-04-04 Kyle Galloway <kgallowa@redhat.com>
authorkgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Apr 2007 00:00:45 +0000 (00:00 +0000)
committerkgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Apr 2007 00:00:45 +0000 (00:00 +0000)
* classpath/gnu/classpath/jdwp/util/VariableTable.java: Change longs
to ints for argCnt and slots.
(write): Replace writeLong with writeInt for the above.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123511 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/classpath/gnu/classpath/jdwp/util/VariableTable.java
libjava/classpath/lib/gnu/classpath/jdwp/util/VariableTable.class
libjava/gnu/classpath/jdwp/util/VariableTable.h

index 09b7e07..3d0b9ec 100644 (file)
@@ -1,3 +1,9 @@
+2007-04-04  Kyle Galloway  <kgallowa@redhat.com>
+
+       * classpath/gnu/classpath/jdwp/util/VariableTable.java: Change longs
+       to ints for argCnt and slots.
+       (write): Replace writeLong with writeInt for the above. 
+
 2007-04-03  Andrew Haley  <aph@redhat.com>
 
        * testsuite/libjava.lang/ProxyTest.java: New test.
index 22d8c7d..f30c215 100644 (file)
@@ -50,9 +50,9 @@ import java.io.IOException;
 public class VariableTable
 {
 
-  private final long argCnt;
+  private final int argCnt;
 
-  private final long slots;
+  private final int slots;
 
   private final long[] lineCI;
 
@@ -95,8 +95,8 @@ public class VariableTable
    */
   public void write(DataOutputStream os) throws IOException
   {
-    os.writeLong(argCnt);
-    os.writeLong(slots);
+    os.writeInt(argCnt);
+    os.writeInt(slots);
     for (int i = 0; i < slots; i++)
       {
         os.writeLong(lineCI[i]);
index 7c653c3..0ba47cd 100644 (file)
Binary files a/libjava/classpath/lib/gnu/classpath/jdwp/util/VariableTable.class and b/libjava/classpath/lib/gnu/classpath/jdwp/util/VariableTable.class differ
index 05b0477..893348e 100644 (file)
@@ -33,8 +33,8 @@ public:
   VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);
   virtual void write(::java::io::DataOutputStream *);
 private:
-  jlong __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;
-  jlong slots;
+  jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;
+  jint slots;
   JArray< jlong > * lineCI;
   JArray< jint > * slot;
   JArray< jint > * lengths;