From 2f69057b87c8e999d2d2baef19d4fea41ac62efd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 11 Apr 2025 12:55:37 +0700 Subject: [PATCH] openjdk10-bootstrap: time is timeless, well --- .../openjdk10-bootstrap/patches/xxx-future.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/openjdk10-bootstrap/patches/xxx-future.patch diff --git a/srcpkgs/openjdk10-bootstrap/patches/xxx-future.patch b/srcpkgs/openjdk10-bootstrap/patches/xxx-future.patch new file mode 100644 index 00000000000..68329f08848 --- /dev/null +++ b/srcpkgs/openjdk10-bootstrap/patches/xxx-future.patch @@ -0,0 +1,13 @@ +--- a/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java ++++ b/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java +@@ -284,8 +284,8 @@ public class GenerateCurrencyData { + 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) 50) * 365 * 24 * 60 * 60 * 1000) { ++ throw new RuntimeException("time is more than 50 years from present: " + time); + } + specialCaseCutOverTimes[specialCaseCount] = time; + specialCaseOldCurrencies[specialCaseCount] = oldCurrency;