diff -r a437b3f9d7f4 -r 6fe31bc95bbc jdk/src/share/classes/java/util/Random.java --- a/jdk/src/share/classes/java/util/Random.java Mon Mar 10 14:32:51 2008 -0700 +++ b/jdk/src/share/classes/java/util/Random.java Mon Mar 10 15:07:09 2008 -0700 @@ -504,7 +504,7 @@ // The seed is read in as {@code long} for // historical reasons, but it is converted to an AtomicLong. - long seedVal = (long) fields.get("seed", -1L); + long seedVal = fields.get("seed", -1L); if (seedVal < 0) throw new java.io.StreamCorruptedException( "Random: invalid seed");