[Midnightbsd-cvs] mports [20210] trunk/java/openjdk6/files/ patch-xxx-GenerateCurrencyData.java: fix date in the past bug
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Sep 11 22:44:18 EDT 2015
Revision: 20210
http://svnweb.midnightbsd.org/mports/?rev=20210
Author: laffer1
Date: 2015-09-11 22:44:17 -0400 (Fri, 11 Sep 2015)
Log Message:
-----------
fix date in the past bug
Added Paths:
-----------
trunk/java/openjdk6/files/patch-xxx-GenerateCurrencyData.java
Added: trunk/java/openjdk6/files/patch-xxx-GenerateCurrencyData.java
===================================================================
--- trunk/java/openjdk6/files/patch-xxx-GenerateCurrencyData.java (rev 0)
+++ trunk/java/openjdk6/files/patch-xxx-GenerateCurrencyData.java 2015-09-12 02:44:17 UTC (rev 20210)
@@ -0,0 +1,12 @@
+--- jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java.orig 2015-08-30 16:18:04.174167371 -0400
++++ jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java 2015-08-30 16:18:39.163676620 -0400
+@@ -281,9 +281,6 @@
+ 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);
+- }
+ specialCaseCutOverTimes[specialCaseCount] = time;
+ specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
+ specialCaseOldCurrenciesDefaultFractionDigits[specialCaseCount] = getDefaultFractionDigits(oldCurrency);
Property changes on: trunk/java/openjdk6/files/patch-xxx-GenerateCurrencyData.java
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list