Skip to content

Commit ee8e2a0

Browse files
authored
Merge pull request #4 from vladak/10years
patch the 10 years check away
2 parents ebc2161 + ec5e99c commit ee8e2a0

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

patches-10/Solaris11-10years.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java.orig 2025-06-02 15:19:22.778297762 +0000
2+
+++ make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java 2025-06-02 15:19:34.717245341 +0000
3+
@@ -284,9 +284,6 @@
4+
checkCurrencyCode(newCurrency);
5+
String timeString = currencyInfo.substring(4, length - 4);
6+
long time = format.parse(timeString).getTime();
7+
- if (Math.abs(time - System.currentTimeMillis()) > ((long) 10) * 365 * 24 * 60 * 60 * 1000) {
8+
- throw new RuntimeException("time is more than 10 years from present: " + time);
9+
- }
10+
specialCaseCutOverTimes[specialCaseCount] = time;
11+
specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
12+
specialCaseOldCurrenciesDefaultFractionDigits[specialCaseCount] = getDefaultFractionDigits(oldCurrency);

patches-10/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Solaris11-EM_486.patch -p0
22
Solaris11-TRAPNO.patch -p0
33
Solaris11-caddr32.patch -p0
4+
Solaris11-10years.patch -p0

patches-9/Solaris11-10years.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- jdk/make/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java.orig 2025-06-02 15:08:19.382852914 +0000
2+
+++ jdk/make/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java 2025-06-02 15:08:33.983873597 +0000
3+
@@ -284,9 +284,6 @@
4+
checkCurrencyCode(newCurrency);
5+
String timeString = currencyInfo.substring(4, length - 4);
6+
long time = format.parse(timeString).getTime();
7+
- if (Math.abs(time - System.currentTimeMillis()) > ((long) 10) * 365 * 24 * 60 * 60 * 1000) {
8+
- throw new RuntimeException("time is more than 10 years from present: " + time);
9+
- }
10+
specialCaseCutOverTimes[specialCaseCount] = time;
11+
specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
12+
specialCaseOldCurrenciesDefaultFractionDigits[specialCaseCount] = getDefaultFractionDigits(oldCurrency);

patches-9/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Solaris11-EM_486.patch -p0
22
Solaris11-TRAPNO.patch -p0
33
Solaris11-caddr32.patch -p0
4+
Solaris11-10years.patch -p0

0 commit comments

Comments
 (0)