]> git.pld-linux.org Git - packages/icedtea8.git/blob - currency-change-fix.patch
noarch doc and examples subpackages
[packages/icedtea8.git] / currency-change-fix.patch
1 --- openjdk/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java~      2015-01-02 09:59:05.000000000 +0000
2 +++ openjdk/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java       2015-01-02 10:04:30.624981502 +0000
3 @@ -281,8 +281,8 @@
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 +            if (Math.abs(time - System.currentTimeMillis()) > ((long) 20) * 365 * 24 * 60 * 60 * 1000) {
10 +                throw new RuntimeException("time is more than 20 years from present: " + time);
11              }
12              specialCaseCutOverTimes[specialCaseCount] = time;
13              specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
This page took 0.066685 seconds and 3 git commands to generate.