diff options
author | Strahil Yordanov <strahilski@yahoo.com> | 2015-01-21 06:51:07 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-01-21 06:51:07 +0700 |
commit | 50b183f7f3bb29f6f21c645cec911736a9bf2c32 (patch) | |
tree | 5e198d4def385aea1fb57d112b4062b3cbf94c89 /development/openjdk/currencyexpire.patch | |
parent | 238c6e355853bf89c0c1914e71c31ee5159f0801 (diff) |
development/openjdk: Updated for version 7u71b14.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/openjdk/currencyexpire.patch')
-rw-r--r-- | development/openjdk/currencyexpire.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/development/openjdk/currencyexpire.patch b/development/openjdk/currencyexpire.patch new file mode 100644 index 0000000000000..45dfea7c65874 --- /dev/null +++ b/development/openjdk/currencyexpire.patch @@ -0,0 +1,14 @@ +diff -Nru openjdk.orig/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java openjdk/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java +--- openjdk.orig/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java 2015-01-17 19:19:33.000000000 +0200 ++++ openjdk/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java 2015-01-17 22:29:32.000000000 +0200 +@@ -281,8 +281,8 @@ + checkCurrencyCode(newCurrency); + String timeString = currencyInfo.substring(4, length - 4); + long time = format.parse(timeString).getTime(); +- if (Math.abs(time - System.currentTimeMillis()) > ((long) 10) * 365 * 24 * 60 * 60 * 1000) { +- throw new RuntimeException("time is more than 10 years from present: " + time); ++ if (Math.abs(time - System.currentTimeMillis()) > ((long) 20) * 365 * 24 * 60 * 60 * 1000) { ++ throw new RuntimeException("time is more than 20 years from present: " + time); + } + specialCaseCutOverTimes[specialCaseCount] = time; + specialCaseOldCurrencies[specialCaseCount] = oldCurrency; |