From cd4e154ccff7fd8dbb1fc5b8c9ff4f5155fb3cce Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sun, 7 Jul 2024 20:59:39 +0800 Subject: [PATCH] Fix timebomb bug in GenerateCurrencyData See: https://issues.guix.gnu.org/issue/68333/attachment/5/1 --- .../build/tools/generatecurrencydata/GenerateCurrencyData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git jdk/make/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java jdk/make/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java index d424bc1494..d4cd6c1186 100644 --- jdk/make/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java +++ jdk/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;