head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2015.01.06.11.24.02; author jperkin; state dead; branches; next 1.1; commitid SbVAAHW1ronajX4y; 1.1 date 2015.01.06.11.19.19; author jperkin; state Exp; branches; next ; commitid H6JhjwJjOnbwhX4y; desc @@ 1.2 log @Sorry, revert previous, already fixed on HEAD (still broken on 2014Q4). @ text @$NetBSD: patch-jdk_make_tools_src_build_tools_generatecurrencydata_GenerateCurrencyData.java,v 1.1 2015/01/06 11:19:19 jperkin Exp $ Extend valid currency data to 15 years to avoid lag in upstream updates. --- jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java.orig 2014-11-02 07:18:20.000000000 +0000 +++ jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java @@@@ -281,8 +281,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) 15) * 365 * 24 * 60 * 60 * 1000) { + throw new RuntimeException("time is more than 15 years from present: " + time); } specialCaseCutOverTimes[specialCaseCount] = time; specialCaseOldCurrencies[specialCaseCount] = oldCurrency; @ 1.1 log @Extend valid currency data to 15 years to avoid lag in upstream updates, fixes current problems with the Turkish data which expired at the end of last year. @ text @d1 1 a1 1 $NetBSD$ @