View | Details | Raw Unified | Return to bug 1213796
Collapse All | Expand All

(-)jdk21u-jdk-21.0.1-12/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java (-2 / +2 lines)
Lines 311-318 public class GenerateCurrencyData { Link Here
311
            checkCurrencyCode(newCurrency);
311
            checkCurrencyCode(newCurrency);
312
            String timeString = currencyInfo.substring(4, length - 4);
312
            String timeString = currencyInfo.substring(4, length - 4);
313
            long time = format.parse(timeString).getTime();
313
            long time = format.parse(timeString).getTime();
314
            if (Math.abs(time - System.currentTimeMillis()) > ((long) 10) * 365 * 24 * 60 * 60 * 1000) {
314
            if (Math.abs(time - System.currentTimeMillis()) > ((long) 40) * 365 * 24 * 60 * 60 * 1000) {
315
                throw new RuntimeException("time is more than 10 years from present: " + time);
315
                throw new RuntimeException("time is more than 40 years from present: " + time);
316
            }
316
            }
317
            specialCaseCutOverTimes[specialCaseCount] = time;
317
            specialCaseCutOverTimes[specialCaseCount] = time;
318
            specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
318
            specialCaseOldCurrencies[specialCaseCount] = oldCurrency;

Return to bug 1213796