mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-14 05:07:01 +02:00
openjdk10-bootstrap: time is timeless, well
This commit is contained in:
parent
fac3f78c2c
commit
2f69057b87
1 changed files with 13 additions and 0 deletions
13
srcpkgs/openjdk10-bootstrap/patches/xxx-future.patch
Normal file
13
srcpkgs/openjdk10-bootstrap/patches/xxx-future.patch
Normal file
|
@ -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;
|
Loading…
Add table
Reference in a new issue