mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
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:
parent
efb3ef9b51
commit
2904dd738e
@ -99,7 +99,7 @@ public class Field<T> extends AccessibleObject {
|
|||||||
|
|
||||||
case LongField:
|
case LongField:
|
||||||
return Long.valueOf
|
return Long.valueOf
|
||||||
((int) getPrimitive(target, vmField.code, vmField.offset));
|
(getPrimitive(target, vmField.code, vmField.offset));
|
||||||
|
|
||||||
case FloatField:
|
case FloatField:
|
||||||
return Float.valueOf
|
return Float.valueOf
|
||||||
|
Loading…
Reference in New Issue
Block a user