diff options
author | Rex Kerr <ichoran@gmail.com> | 2015-03-31 01:14:31 -0700 |
---|---|---|
committer | Rex Kerr <ichoran@gmail.com> | 2015-03-31 15:37:40 -0700 |
commit | 71777cc9ff27786d74bda55a00ab477a4e53efb5 (patch) | |
tree | aaa501960c857cab3f466adfed9038a1102b674a /tools/binary-repo-lib.sh | |
parent | 32f520f3ed78ecde390dc7b1b48d3130e412a9dc (diff) | |
download | scala-71777cc9ff27786d74bda55a00ab477a4e53efb5.tar.gz scala-71777cc9ff27786d74bda55a00ab477a4e53efb5.tar.bz2 scala-71777cc9ff27786d74bda55a00ab477a4e53efb5.zip |
SI-9197 Duration.Inf not a singleton when deserialized
Made `Duration.Undefined`, `.Inf`, and `.MinusInf` all give back the singleton instance instead of creating a new copy by overriding readResolve.
This override can be (and is) private, which at least on Sun's JDK8 doesn't mess with the auto-generated SerialVersionUIDs.
Thus, the patch should make things strictly better: if you're on 2.11.7+ on JVMs which pick the same SerialVersionUIDs, you can recover singletons. Everywhere else you were already in trouble anyway.
Diffstat (limited to 'tools/binary-repo-lib.sh')
0 files changed, 0 insertions, 0 deletions