Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
fabf4de4
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看板
提交
fabf4de4
编写于
6月 13, 2014
作者:
M
mfang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8037343: Wrong dateformat for locale es_DO
Reviewed-by: okutsu Contributed-by: me@sandipan.net
上级
e50d0d29
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
80 addition
and
5 deletion
+80
-5
src/share/classes/sun/text/resources/es/FormatData_es_DO.java
...share/classes/sun/text/resources/es/FormatData_es_DO.java
+2
-2
test/sun/text/resources/Format/Bug8037343.java
test/sun/text/resources/Format/Bug8037343.java
+71
-0
test/sun/text/resources/LocaleData
test/sun/text/resources/LocaleData
+6
-2
test/sun/text/resources/LocaleDataTest.java
test/sun/text/resources/LocaleDataTest.java
+1
-1
未找到文件。
src/share/classes/sun/text/resources/es/FormatData_es_DO.java
浏览文件 @
fabf4de4
...
@@ -75,8 +75,8 @@ public class FormatData_es_DO extends ParallelListResourceBundle {
...
@@ -75,8 +75,8 @@ public class FormatData_es_DO extends ParallelListResourceBundle {
new
String
[]
{
new
String
[]
{
"EEEE d' de 'MMMM' de 'yyyy"
,
// full date pattern
"EEEE d' de 'MMMM' de 'yyyy"
,
// full date pattern
"d' de 'MMMM' de 'yyyy"
,
// long date pattern
"d' de 'MMMM' de 'yyyy"
,
// long date pattern
"
MM/dd
/yyyy"
,
// medium date pattern
"
dd/MM
/yyyy"
,
// medium date pattern
"
MM/dd
/yy"
,
// short date pattern
"
dd/MM
/yy"
,
// short date pattern
}
}
},
},
{
"DateTimePatterns"
,
{
"DateTimePatterns"
,
...
...
test/sun/text/resources/Format/Bug8037343.java
0 → 100644
浏览文件 @
fabf4de4
/*
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 8037343
* @summary updating dateformat for es_DO
*/
import
java.text.DateFormat
;
import
java.util.Calendar
;
import
java.util.Locale
;
public
class
Bug8037343
{
public
static
void
main
(
String
[]
arg
)
{
final
Locale
esDO
=
new
Locale
(
"es"
,
"DO"
);
final
String
expectedShort
=
"31/03/12"
;
final
String
expectedMedium
=
"31/03/2012"
;
int
errors
=
0
;
DateFormat
format
;
String
result
;
Calendar
cal
=
Calendar
.
getInstance
(
esDO
);
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
31
);
cal
.
set
(
Calendar
.
MONTH
,
Calendar
.
MARCH
);
cal
.
set
(
Calendar
.
YEAR
,
2012
);
format
=
DateFormat
.
getDateInstance
(
DateFormat
.
SHORT
,
esDO
);
result
=
format
.
format
(
cal
.
getTime
());
if
(!
expectedShort
.
equals
(
result
))
{
System
.
out
.
println
(
String
.
format
(
"Short Date format for es_DO is not as expected. Expected: [%s] Actual: [%s]"
,
expectedShort
,
result
));
errors
++;
}
format
=
DateFormat
.
getDateInstance
(
DateFormat
.
MEDIUM
,
esDO
);
result
=
format
.
format
(
cal
.
getTime
());
if
(!
expectedMedium
.
equals
(
result
))
{
System
.
out
.
println
(
String
.
format
(
"Medium Date format for es_DO is not as expected. Expected: [%s] Actual: [%s]"
,
expectedMedium
,
result
));
errors
++;
}
if
(
errors
>
0
)
{
throw
new
RuntimeException
();
}
}
}
test/sun/text/resources/LocaleData
浏览文件 @
fabf4de4
...
@@ -483,8 +483,8 @@ FormatData/es_DO/TimePatterns/2=hh:mm:ss a
...
@@ -483,8 +483,8 @@ FormatData/es_DO/TimePatterns/2=hh:mm:ss a
FormatData/es_DO/TimePatterns/3=hh:mm a
FormatData/es_DO/TimePatterns/3=hh:mm a
FormatData/es_DO/DatePatterns/0=EEEE d' de 'MMMM' de 'yyyy
FormatData/es_DO/DatePatterns/0=EEEE d' de 'MMMM' de 'yyyy
FormatData/es_DO/DatePatterns/1=d' de 'MMMM' de 'yyyy
FormatData/es_DO/DatePatterns/1=d' de 'MMMM' de 'yyyy
FormatData/es_DO/DatePatterns/2=MM/dd/yyyy
# FormatData/es_DO/DatePatterns/2=MM/dd/yyyy # Changed: see bug 8037343
FormatData/es_DO/DatePatterns/3=MM/dd/yy
# FormatData/es_DO/DatePatterns/3=MM/dd/yy # Changed: see bug 8037343
FormatData/es_DO/DateTimePatterns/0={1} {0}
FormatData/es_DO/DateTimePatterns/0={1} {0}
FormatData/es_DO/NumberElements/0=.
FormatData/es_DO/NumberElements/0=.
FormatData/es_DO/NumberElements/1=,
FormatData/es_DO/NumberElements/1=,
...
@@ -7695,3 +7695,7 @@ FormatData/es_EC/TimePatterns/0=HH:mm:ss zzzz
...
@@ -7695,3 +7695,7 @@ FormatData/es_EC/TimePatterns/0=HH:mm:ss zzzz
FormatData/es_EC/TimePatterns/1=H:mm:ss z
FormatData/es_EC/TimePatterns/1=H:mm:ss z
FormatData/es_EC/TimePatterns/2=H:mm:ss
FormatData/es_EC/TimePatterns/2=H:mm:ss
FormatData/es_EC/TimePatterns/3=H:mm
FormatData/es_EC/TimePatterns/3=H:mm
# bug 8037343
FormatData/es_DO/DatePatterns/2=dd/MM/yyyy
FormatData/es_DO/DatePatterns/3=dd/MM/yy
test/sun/text/resources/LocaleDataTest.java
浏览文件 @
fabf4de4
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
* 6919624 6998391 7019267 7020960 7025837 7020583 7036905 7066203 7101495
* 6919624 6998391 7019267 7020960 7025837 7020583 7036905 7066203 7101495
* 7003124 7085757 7028073 7171028 7189611 8000983 7195759 8004489 8006509
* 7003124 7085757 7028073 7171028 7189611 8000983 7195759 8004489 8006509
* 7114053 7074882 7040556 8013836 8021121 6192407 6931564 8027695 7090826
* 7114053 7074882 7040556 8013836 8021121 6192407 6931564 8027695 7090826
* 8017142
* 8017142
8037343
* @summary Verify locale data
* @summary Verify locale data
*
*
*/
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录