[packages/icedtea7] - fix broken assumption that java will die in 10 years since 2004 (make it 20)
baggins
baggins at pld-linux.org
Fri Jan 2 15:10:12 CET 2015
commit bf35345e6c68879264cfa4a16dc7d2aadfe7369d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Jan 2 14:08:38 2015 +0000
- fix broken assumption that java will die in 10 years since 2004 (make it 20)
currency-change-fix.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/currency-change-fix.patch b/currency-change-fix.patch
new file mode 100644
index 0000000..bc44ed3
--- /dev/null
+++ b/currency-change-fix.patch
@@ -0,0 +1,13 @@
+--- openjdk/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java~ 2015-01-02 09:59:05.000000000 +0000
++++ openjdk/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java 2015-01-02 10:04:30.624981502 +0000
+@@ -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;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/icedtea7.git/commitdiff/ef4429ab8436c14029ee33e4b3f4c6823c7b8ca8
More information about the pld-cvs-commit
mailing list