void-packages/srcpkgs/openjdk7-bootstrap/files/openjdk.future.patch
2025-02-20 21:03:32 +01:00

15 lines
943 B
Diff

fixes build failure
--- jdk.orig/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java
+++ jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java
@@ -283,8 +283,8 @@
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;