Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
279a03b9
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看板
提交
279a03b9
编写于
6月 21, 2013
作者:
N
naoto
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6863624: java/util/Currency/PropertiesTest.sh writable check is incorrect
Reviewed-by: alanb
上级
39aadabf
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
21 addition
and
13 deletion
+21
-13
test/java/util/Currency/PropertiesTest.sh
test/java/util/Currency/PropertiesTest.sh
+19
-11
test/java/util/Locale/LocaleProviders.java
test/java/util/Locale/LocaleProviders.java
+1
-1
test/java/util/Locale/LocaleProviders.sh
test/java/util/Locale/LocaleProviders.sh
+1
-1
未找到文件。
test/java/util/Currency/PropertiesTest.sh
浏览文件 @
279a03b9
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#
#
# @test
# @test
# @bug 6332666 7180362 8003846
# @bug 6332666
6863624
7180362 8003846
# @summary tests the capability of replacing the currency data with user
# @summary tests the capability of replacing the currency data with user
# specified currency properties file
# specified currency properties file
# @build PropertiesTest
# @build PropertiesTest
...
@@ -56,10 +56,15 @@ case "$OS" in
...
@@ -56,10 +56,15 @@ case "$OS" in
PS
=
":"
PS
=
":"
FS
=
"/"
FS
=
"/"
;;
;;
Windows
*
|
CYGWIN
*
)
Windows
*
)
PS
=
";"
PS
=
";"
FS
=
"/"
FS
=
"/"
;;
;;
CYGWIN
*
)
PS
=
";"
FS
=
"/"
TESTJAVA
=
`
cygpath
-u
${
TESTJAVA
}
`
;;
*
)
*
)
echo
"Unrecognized system!"
echo
"Unrecognized system!"
exit
1
;
exit
1
;
...
@@ -92,24 +97,27 @@ run PropertiesTest -c dump1 dump2 ${PROPS}
...
@@ -92,24 +97,27 @@ run PropertiesTest -c dump1 dump2 ${PROPS}
# Dump built-in currency data + overrides in properties file copied into
# Dump built-in currency data + overrides in properties file copied into
# JRE image.
# JRE image.
# copy the test properties file
# Copy the test properties file. If testjava is not a typical jdk-image
# or testjava is not writable, make a private copy of it.
COPIED
=
0
COPIED
=
0
if
[
-w
$
TESTJAVA
]
if
[
-w
$
{
TESTJAVA
}${
FS
}
jre
${
FS
}
lib
]
then
then
WRITABLEJDK
=
$TESTJAVA
WRITABLEJDK
=
$TESTJAVA
PROPLOCATION
=
${
WRITABLEJDK
}${
FS
}
jre
${
FS
}
lib
else
else
WRITABLEJDK
=
.
${
FS
}
testjava
WRITABLEJDK
=
.
${
FS
}
testjava
if
[
-d
${
TESTJAVA
}${
FS
}
jre
]
then
PROPLOCATION
=
${
WRITABLEJDK
}${
FS
}
jre
${
FS
}
lib
else
PROPLOCATION
=
${
WRITABLEJDK
}${
FS
}
lib
fi
cp
-r
$TESTJAVA
$WRITABLEJDK
cp
-r
$TESTJAVA
$WRITABLEJDK
chmod
-R
+w
$WRITABLEJDK
COPIED
=
1
COPIED
=
1
fi
fi
if
[
-d
${
WRITABLEJDK
}${
FS
}
jre
]
then
PROPLOCATION
=
${
WRITABLEJDK
}${
FS
}
jre
${
FS
}
lib
else
PROPLOCATION
=
${
WRITABLEJDK
}${
FS
}
lib
fi
cp
${
PROPS
}
$PROPLOCATION
cp
${
PROPS
}
$PROPLOCATION
echo
"Properties location:
${
PROPLOCATION
}
"
# run
# run
echo
''
echo
''
...
...
test/java/util/Locale/LocaleProviders.java
浏览文件 @
279a03b9
...
@@ -207,7 +207,7 @@ public class LocaleProviders {
...
@@ -207,7 +207,7 @@ public class LocaleProviders {
String
jreResult
=
"\u5e73\u6210 16.11.03 (\u6c34) \u5348\u524d 11:53:47"
;
String
jreResult
=
"\u5e73\u6210 16.11.03 (\u6c34) \u5348\u524d 11:53:47"
;
Locale
l
=
new
Locale
(
"ja"
,
"JP"
,
"JP"
);
Locale
l
=
new
Locale
(
"ja"
,
"JP"
,
"JP"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"GGGG yyyy.MMM.dd '('E')' a hh:mm:ss"
,
l
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"GGGG yyyy.MMM.dd '('E')' a hh:mm:ss"
,
l
);
sdf
.
setTimeZone
(
TimeZone
.
getTimeZone
(
"
PST
"
));
sdf
.
setTimeZone
(
TimeZone
.
getTimeZone
(
"
America/Los_Angeles
"
));
String
result
=
sdf
.
format
(
sampleDate
);
String
result
=
sdf
.
format
(
sampleDate
);
System
.
out
.
println
(
result
);
System
.
out
.
println
(
result
);
if
(
LocaleProviderAdapter
.
getAdapterPreference
()
if
(
LocaleProviderAdapter
.
getAdapterPreference
()
...
...
test/java/util/Locale/LocaleProviders.sh
浏览文件 @
279a03b9
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#
#
# @test
# @test
# @bug 6336885 7196799 7197573 7198834 8000245 8000615 8001440 8010666
# @bug 6336885 7196799 7197573 7198834 8000245 8000615 8001440 8010666
# 8013086 8013233 8013903
# 8013086 8013233 8013903
8015960
# @summary tests for "java.locale.providers" system property
# @summary tests for "java.locale.providers" system property
# @compile -XDignore.symbol.file LocaleProviders.java
# @compile -XDignore.symbol.file LocaleProviders.java
# @run shell/timeout=600 LocaleProviders.sh
# @run shell/timeout=600 LocaleProviders.sh
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录