Signed-off-by: Arthur HUILLET
---
regression/jvm/PutfieldTest.java | 28 +---
1 files changed, 13 insertions(+), 15 deletions(-)
diff --git a/regression/jvm/PutfieldTest.java b/regression/jvm/PutfieldTest.java
index b7d0987..04612b0 100644
--- a/regression/jvm/PutfieldTest.java
+++ b/regression/jvm/PutfieldTest.java
@@ -62,48 +62,46 @@ public class PutfieldTest extends TestCase {
}
static class J {
-int x, y;
-static int z;
+long x, y;
+static long z;
};
public static void testPutFieldConstLong() {
J j = new J();
-j.x = 1;
-assertEquals(1, j.x);
+j.x = 4294967300L;
+assertEquals(4294967300L, j.x);
}
public static void testPutFieldInstanceFieldLong() {
J j = new J();
-j.x = 1;
+j.x = 4294967300L;
j.y = j.x;
assertEquals(j.x, j.y);
}
public static void testPutFieldClassFieldLong() {
J j = new J();
-J.z = 1;
+J.z = 4294967300L;
j.x = J.z;
assertEquals(J.z, j.x);
}
public static void testPutFieldLocalLong() {
J j = new J();
-int l = 1;
+long l = 4294967300L;
j.x = l;
assertEquals(l, j.x);
}
public static void main(String[] args) {
testPutFieldConstInt();
-// FIXME:
-// testPutFieldInstanceFieldInt();
-// testPutFieldClassFieldInt();
+testPutFieldInstanceFieldInt();
+testPutFieldClassFieldInt();
testPutFieldLocalInt();
-// FIXME:
-// testPutFieldConstLong();
-// testPutFieldInstanceFieldLong();
-// testPutFieldClassFieldLong();
-// testPutFieldLocalLong();
+testPutFieldConstLong();
+testPutFieldInstanceFieldLong();
+testPutFieldClassFieldLong();
+testPutFieldLocalLong();
Runtime.getRuntime().halt(retval);
}
--
1.6.2.2
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel