mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
14 lines
861 B
Diff
14 lines
861 B
Diff
|
Fix a time bomb present in the jdk "drop" of IcedTea 8.
|
||
|
|
||
|
--- a/make/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java
|
||
|
+++ b/make/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java
|
||
|
@@ -284,7 +284,7 @@ public class GenerateCurrencyData {
|
||
|
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);
|
||
|
+ System.err.println("note: time is more than 10 years from \"present\": " + time);
|
||
|
}
|
||
|
specialCaseCutOverTimes[specialCaseCount] = time;
|
||
|
specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
|