diff --git a/classpath/java/lang/Integer.java b/classpath/java/lang/Integer.java index 028d01e4e7..a39579127c 100644 --- a/classpath/java/lang/Integer.java +++ b/classpath/java/lang/Integer.java @@ -45,7 +45,7 @@ public final class Integer extends Number implements Comparable { } public static String toHexString(int v) { - return toString(v, 16); + return Long.toString(((long) v) & 0xFFFFFFFFL, 16); } public byte byteValue() {