mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
50b183f7f3
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
14 lines
1.2 KiB
Diff
14 lines
1.2 KiB
Diff
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;
|