at master 925 B view raw
1--- ./make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java 2+++ ./make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java 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;