~ruther/guix-local

ref: d6bb6dffc0b4e6ec17cab3bf3ec41bdb47764b19 guix-local/gnu/packages/patches/openjdk-currency-time-bomb2.patch -rw-r--r-- 859 bytes
d6bb6dff — Nicolas Goaziou gnu: emacs-jinx: Update to 1.5. 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
Fix a time bomb present in the OpenJDK tools.

--- a/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java
+++ b/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java
@@ -285,7 +285,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;