From 2904dd738e3ed92e7ea930b100dafd1ffc8732dd Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 30 Oct 2013 11:45:54 -0500 Subject: [PATCH] Fix java.lang.reflect.Field.getLong() The bug was that the long was cast to an int, cutting off the most significant bytes. Signed-off-by: Johannes Schindelin --- classpath/java/lang/reflect/Field.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classpath/java/lang/reflect/Field.java b/classpath/java/lang/reflect/Field.java index 91ad0f9670..cd26c1b7f9 100644 --- a/classpath/java/lang/reflect/Field.java +++ b/classpath/java/lang/reflect/Field.java @@ -99,7 +99,7 @@ public class Field extends AccessibleObject { case LongField: return Long.valueOf - ((int) getPrimitive(target, vmField.code, vmField.offset)); + (getPrimitive(target, vmField.code, vmField.offset)); case FloatField: return Float.valueOf