Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
openjdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
openjdk
Commits
e8d5190f
Commit
e8d5190f
authored
Jan 22, 2024
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed GenerateCurrencyData in openjdk10
parent
fed2e4e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
Makefile
Makefile
+1
-0
jdk10u-jdk-10.0.2+13-fix_GenerateCurrencyData.patch
jdk10u-jdk-10.0.2+13-fix_GenerateCurrencyData.patch
+14
-0
No files found.
Makefile
View file @
e8d5190f
...
@@ -56,6 +56,7 @@ build-10:
...
@@ -56,6 +56,7 @@ build-10:
swapon swap
swapon swap
tar
xf jdk-10.0.2+13.tar.bz2
tar
xf jdk-10.0.2+13.tar.bz2
patch
-Np1
-d
jdk10u-jdk-10.0.2+13 < jdk10u-jdk-10.0.2+13-make_4_3_fix.patch
patch
-Np1
-d
jdk10u-jdk-10.0.2+13 < jdk10u-jdk-10.0.2+13-make_4_3_fix.patch
patch
-Np1
-d
jdk10u-jdk-10.0.2+13 < jdk10u-jdk-10.0.2+13-fix_GenerateCurrencyData.patch
cd
jdk10u-jdk-10.0.2+13
&&
PATH
=
/build/usr/bin:
$$
PATH bash configure
--enable-unlimited-crypto
--disable-warnings-as-errors
--with-stdc
++lib
=
dynamic
--with-giflib
=
system
--with-lcms
=
system
--with-libjpeg
=
system
--with-libpng
=
system
--with-zlib
=
system
--with-version-build
=
"13"
--with-version-pre
=
""
--with-version-opt
=
""
cd
jdk10u-jdk-10.0.2+13
&&
PATH
=
/build/usr/bin:
$$
PATH bash configure
--enable-unlimited-crypto
--disable-warnings-as-errors
--with-stdc
++lib
=
dynamic
--with-giflib
=
system
--with-lcms
=
system
--with-libjpeg
=
system
--with-libpng
=
system
--with-zlib
=
system
--with-version-build
=
"13"
--with-version-pre
=
""
--with-version-opt
=
""
PATH
=
/build/usr/bin:
$$
PATH
$(MAKE)
-C
jdk10u-jdk-10.0.2+13 images
PATH
=
/build/usr/bin:
$$
PATH
$(MAKE)
-C
jdk10u-jdk-10.0.2+13 images
mkdir
-p
/opt/jdk-10.0.2+13
mkdir
-p
/opt/jdk-10.0.2+13
...
...
jdk10u-jdk-10.0.2+13-fix_GenerateCurrencyData.patch
0 → 100644
View file @
e8d5190f
diff -uNr jdk10u-jdk-10.0.2+13/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java jdk10u-jdk-10.0.2+13-fix_GenerateCurrencyData/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java
--- jdk10u-jdk-10.0.2+13/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java 2018-06-24 23:37:06.000000000 +0930
+++ jdk10u-jdk-10.0.2+13-fix_GenerateCurrencyData/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java 2024-01-22 18:50:31.693380625 +1030
@@ -284,8 +284,8 @@
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) 20) * 365 * 24 * 60 * 60 * 1000) {
+ throw new RuntimeException("time is more than 20 years from present: " + time);
}
specialCaseCutOverTimes[specialCaseCount] = time;
specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment