Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
06547293
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
06547293
编写于
10月 31, 2011
作者:
Y
yhuang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7077119: remove past transition dates from CurrencyData.properties file
Reviewed-by: naoto
上级
e87e49c7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
24 deletion
+26
-24
src/share/classes/java/util/CurrencyData.properties
src/share/classes/java/util/CurrencyData.properties
+6
-6
test/java/util/Currency/CurrencyTest.java
test/java/util/Currency/CurrencyTest.java
+14
-12
test/java/util/Currency/ValidateISO4217.java
test/java/util/Currency/ValidateISO4217.java
+1
-1
test/java/util/Currency/tablea1.txt
test/java/util/Currency/tablea1.txt
+5
-5
未找到文件。
src/share/classes/java/util/CurrencyData.properties
浏览文件 @
06547293
...
...
@@ -71,7 +71,7 @@ all=ADP020-AED784-AFA004-AFN971-ALL008-AMD051-ANG532-AOA973-ARS032-ATS040-AUD036
#
# The table is based on the following web sites:
# http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1/db_en.html
# http://www.
bsi-global.com/iso4217currency
# http://www.
currency-iso.org/iso_index/iso_tables.htm
# http://www.cia.gov/cia/publications/factbook/indexgeo.html
# AFGHANISTAN
...
...
@@ -105,7 +105,7 @@ AU=AUD
# AUSTRIA
AT
=
EUR
# AZERBAIJAN
AZ
=
AZ
M;2005-12-31-20-00-00;AZ
N
AZ
=
AZN
# BAHAMAS
BS
=
BSD
# BAHRAIN
...
...
@@ -378,7 +378,7 @@ MS=XCD
# MOROCCO
MA
=
MAD
# MOZAMBIQUE
MZ
=
MZ
M;2006-06-30-22-00-00;MZ
N
MZ
=
MZN
# MYANMAR
MM
=
MMK
# NAMIBIA
...
...
@@ -440,7 +440,7 @@ QA=QAR
# REUNION
RE
=
EUR
# ROMANIA
RO
=
RO
L;2005-06-30-21-00-00;RO
N
RO
=
RON
# RUSSIAN FEDERATION
RU
=
RUB
# RWANDA
...
...
@@ -532,7 +532,7 @@ TT=TTD
# TUNISIA
TN
=
TND
# TURKEY
TR
=
TR
L;2004-12-31-22-00-00;TR
Y
TR
=
TRY
# TURKMENISTAN
TM
=
TMT
# TURKS AND CAICOS ISLANDS
...
...
@@ -558,7 +558,7 @@ UZ=UZS
# VANUATU
VU
=
VUV
# VENEZUELA
VE
=
VE
B;2008-01-01-04-00-00;VE
F
VE
=
VEF
# VIET NAM
VN
=
VND
# VIRGIN ISLANDS, BRITISH
...
...
test/java/util/Currency/CurrencyTest.java
浏览文件 @
06547293
...
...
@@ -128,18 +128,20 @@ public class CurrencyTest {
checkCountryCurrency
(
country1
[
i
],
currency1
[
i
]);
}
// check currency changes
String
[]
switchOverCtry
=
{
"DE"
,
"FR"
,
"ES"
,
"IT"
,
"NL"
,
"BE"
,
"TR"
,
"RO"
,
"AZ"
,
"MZ"
,
"GH"
,
"VE"
};
String
[]
switchOverOld
=
{
"DEM"
,
"FRF"
,
"ESP"
,
"ITL"
,
"NLG"
,
"BEF"
,
"TRL"
,
"ROL"
,
"AZM"
,
"MZM"
,
"GHC"
,
"VEB"
};
String
[]
switchOverNew
=
{
"EUR"
,
"EUR"
,
"EUR"
,
"EUR"
,
"EUR"
,
"EUR"
,
"TRY"
,
"RON"
,
"AZN"
,
"MZN"
,
"GHS"
,
"VEF"
};
String
[]
switchOverTZ
=
{
"Europe/Paris"
,
"Europe/Paris"
,
"Europe/Paris"
,
"Europe/Paris"
,
"Europe/Paris"
,
"Europe/Paris"
,
"Asia/Istanbul"
,
"Europe/Bucharest"
,
"Asia/Baku"
,
"Africa/Maputo"
,
"Africa/Accra"
,
"America/Caracas"
};
int
[]
switchOverYear
=
{
2002
,
2002
,
2002
,
2002
,
2002
,
2002
,
2005
,
2005
,
2006
,
2006
,
2007
,
2008
};
int
[]
switchOverMonth
=
{
Calendar
.
JANUARY
,
Calendar
.
JANUARY
,
Calendar
.
JANUARY
,
Calendar
.
JANUARY
,
Calendar
.
JANUARY
,
Calendar
.
JANUARY
,
Calendar
.
JANUARY
,
Calendar
.
JULY
,
Calendar
.
JANUARY
,
Calendar
.
JULY
,
Calendar
.
JULY
,
Calendar
.
JANUARY
};
int
[]
switchOverDay
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
};
/*
* check currency changes
* In current implementation, there is no data of old currency and transition date at jdk/src/share/classes/java/util/CurrencyData.properties.
* So, all the switch data arrays are empty. In the future, if data of old currency and transition date are necessary for any country, the
* arrays here can be updated so that the program can check the currency switch.
*/
String
[]
switchOverCtry
=
{};
String
[]
switchOverOld
=
{};
String
[]
switchOverNew
=
{};
String
[]
switchOverTZ
=
{};
int
[]
switchOverYear
=
{};
int
[]
switchOverMonth
=
{};
int
[]
switchOverDay
=
{};
for
(
int
i
=
0
;
i
<
switchOverCtry
.
length
;
i
++)
{
TimeZone
.
setDefault
(
TimeZone
.
getTimeZone
(
switchOverTZ
[
i
]));
Calendar
date
=
new
GregorianCalendar
(
switchOverYear
[
i
],
switchOverMonth
[
i
],
switchOverDay
[
i
]);
...
...
test/java/util/Currency/ValidateISO4217.java
浏览文件 @
06547293
...
...
@@ -92,7 +92,7 @@ public class ValidateISO4217 {
/* Codes that are obsolete, do not have related country */
static
final
String
otherCodes
=
"ADP-AFA-ATS-AYM-
BEF-BGL-BOV-BYB-CLF-CUC-CYP-DEM-EEK-ESP-FIM-FRF-GRD-GWP-IEP-ITL-LUF-MGF-MTL-MXV-NLG-PTE-RUR-SDD-SIT-SKK-SRG-TMM-TPE-TRL-VEF-USN-USS
-XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-XPT-XSU-XTS-XUA-XXX-YUM-ZWD-ZWN-ZWR"
;
"ADP-AFA-ATS-AYM-
AZM-BEF-BGL-BOV-BYB-CLF-CUC-CYP-DEM-EEK-ESP-FIM-FRF-GHC-GRD-GWP-IEP-ITL-LUF-MGF-MTL-MXV-MZM-NLG-PTE-ROL-RUR-SDD-SIT-SKK-SRG-TMM-TPE-TRL-VEF-USN-USS-VEB
-XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-XPT-XSU-XTS-XUA-XXX-YUM-ZWD-ZWN-ZWR"
;
static
boolean
err
=
false
;
...
...
test/java/util/Currency/tablea1.txt
浏览文件 @
06547293
...
...
@@ -23,7 +23,7 @@ AW AWG 533 2
AU AUD 36 2
AT EUR 978 2
# MA 129
AZ AZ
M 31 2 2005-12-31-20-00-00 AZ
N 944 2
AZ AZN 944 2
BS BSD 44 2
BH BHD 48 3
BD BDT 50 2
...
...
@@ -96,7 +96,7 @@ GA XAF 950 0
GM GMD 270 2
GE GEL 981 2
DE EUR 978 2
GH GH
C 288 2 2007-07-01-00-00-00 GH
S 936 2
GH GHS 936 2
GI GIP 292 2
GR EUR 978 2
GL DKK 208 2
...
...
@@ -166,7 +166,7 @@ MN MNT 496 2
MS XCD 951 2
MA MAD 504 2
# MA 130
MZ MZ
M 508 2 2006-06-30-22-00-00 MZ
N 943 2
MZ MZN 943 2
MM MMK 104 2
# MA 134
ME EUR 978 2
...
...
@@ -200,7 +200,7 @@ PT EUR 978 2
PR USD 840 2
QA QAR 634 2
RE EUR 978 2
RO RO
L 946 2 2005-06-30-21-00-00 RO
N 946 2
RO RON 946 2
RU RUB 643 2
RW RWF 646 0
SH SHP 654 2
...
...
@@ -266,7 +266,7 @@ UM USD 840 2
UY UYU 858 2
UZ UZS 860 2
VU VUV 548 0
VE VE
B 862 2 2008-01-01-04-00-00 VE
F 937 2
VE VEF 937 2
VN VND 704 2
VG USD 840 2
VI USD 840 2
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录