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 <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2013-10-30 11:45:54 -05:00
parent efb3ef9b51
commit 2904dd738e

View File

@ -99,7 +99,7 @@ public class Field<T> 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