mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
14 lines
925 B
Diff
14 lines
925 B
Diff
|
--- ./make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java
|
||
|
+++ ./make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java
|
||
|
@@ -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;
|