Bugzilla – Attachment 871120 Details for
Bug 1213796
java-20-openjdk fails to compile in 2034
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
patch for java-21-openjdk
ftbfs-2034.patch (text/plain), 1.15 KB, created by
Bernhard Wiedemann
on 2023-12-04 07:56:01 UTC
(
hide
)
Description:
patch for java-21-openjdk
Filename:
MIME Type:
Creator:
Bernhard Wiedemann
Created:
2023-12-04 07:56:01 UTC
Size:
1.15 KB
patch
obsolete
>Index: jdk21u-jdk-21.0.1-12/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java >=================================================================== >--- jdk21u-jdk-21.0.1-12.orig/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java >+++ jdk21u-jdk-21.0.1-12/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java >@@ -311,8 +311,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) 40) * 365 * 24 * 60 * 60 * 1000) { >+ throw new RuntimeException("time is more than 40 years from present: " + time); > } > specialCaseCutOverTimes[specialCaseCount] = time; > specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 1213796
: 871120