Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
7c904525
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看板
提交
7c904525
编写于
6月 16, 2015
作者:
A
amurillo
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
ffb09888
21be748b
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
94 addition
and
30 deletion
+94
-30
make/mapfiles/libjava/mapfile-vers
make/mapfiles/libjava/mapfile-vers
+2
-2
src/share/classes/java/lang/ClassLoader.java
src/share/classes/java/lang/ClassLoader.java
+4
-3
src/share/classes/sun/text/resources/en/FormatData_en_SG.java
...share/classes/sun/text/resources/en/FormatData_en_SG.java
+8
-0
src/share/native/java/lang/ClassLoader.c
src/share/native/java/lang/ClassLoader.c
+3
-5
src/share/native/sun/font/layout/LookupProcessor.cpp
src/share/native/sun/font/layout/LookupProcessor.cpp
+1
-1
src/solaris/classes/sun/awt/X11/XToolkit.java
src/solaris/classes/sun/awt/X11/XToolkit.java
+6
-3
test/com/sun/jdi/AllLineLocations.java
test/com/sun/jdi/AllLineLocations.java
+0
-1
test/com/sun/jdi/ClassesByName.java
test/com/sun/jdi/ClassesByName.java
+0
-1
test/com/sun/jdi/ExceptionEvents.java
test/com/sun/jdi/ExceptionEvents.java
+0
-1
test/com/sun/jdi/FilterMatch.java
test/com/sun/jdi/FilterMatch.java
+0
-1
test/com/sun/jdi/FilterNoMatch.java
test/com/sun/jdi/FilterNoMatch.java
+0
-1
test/com/sun/jdi/LaunchCommandLine.java
test/com/sun/jdi/LaunchCommandLine.java
+0
-1
test/com/sun/jdi/ModificationWatchpoints.java
test/com/sun/jdi/ModificationWatchpoints.java
+0
-1
test/com/sun/jdi/NativeInstanceFilter.java
test/com/sun/jdi/NativeInstanceFilter.java
+0
-1
test/com/sun/jdi/UnpreparedByName.java
test/com/sun/jdi/UnpreparedByName.java
+0
-1
test/com/sun/jdi/UnpreparedClasses.java
test/com/sun/jdi/UnpreparedClasses.java
+0
-1
test/com/sun/jdi/Vars.java
test/com/sun/jdi/Vars.java
+0
-1
test/java/text/Format/DateFormat/LocaleDateFormats.java
test/java/text/Format/DateFormat/LocaleDateFormats.java
+63
-0
test/sun/text/resources/LocaleData
test/sun/text/resources/LocaleData
+6
-4
test/sun/text/resources/LocaleDataTest.java
test/sun/text/resources/LocaleDataTest.java
+1
-1
未找到文件。
make/mapfiles/libjava/mapfile-vers
浏览文件 @
7c904525
#
# Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1997, 201
5
, 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
...
...
@@ -128,12 +128,12 @@ SUNWprivate_1.1 {
Java_java_lang_ClassLoader_defineClass0;
Java_java_lang_ClassLoader_defineClass1;
Java_java_lang_ClassLoader_defineClass2;
Java_java_lang_ClassLoader_findBuiltinLib;
Java_java_lang_ClassLoader_findLoadedClass0;
Java_java_lang_ClassLoader_resolveClass0;
Java_java_lang_ClassLoader_00024NativeLibrary_find;
Java_java_lang_ClassLoader_00024NativeLibrary_load;
Java_java_lang_ClassLoader_00024NativeLibrary_unload;
Java_java_lang_ClassLoader_00024NativeLibrary_findBuiltinLib;
Java_java_lang_ClassLoader_registerNatives;
Java_java_lang_Compiler_registerNatives;
Java_java_lang_Double_longBitsToDouble;
...
...
src/share/classes/java/lang/ClassLoader.java
浏览文件 @
7c904525
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013,
2015,
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
...
...
@@ -1724,7 +1724,6 @@ public abstract class ClassLoader {
native
long
find
(
String
name
);
native
void
unload
(
String
name
,
boolean
isBuiltin
);
static
native
String
findBuiltinLib
(
String
name
);
public
NativeLibrary
(
Class
<?>
fromClass
,
String
name
,
boolean
isBuiltin
)
{
this
.
name
=
name
;
...
...
@@ -1865,9 +1864,11 @@ public abstract class ClassLoader {
throw
new
UnsatisfiedLinkError
(
"no "
+
name
+
" in java.library.path"
);
}
private
static
native
String
findBuiltinLib
(
String
name
);
private
static
boolean
loadLibrary0
(
Class
<?>
fromClass
,
final
File
file
)
{
// Check to see if we're attempting to access a static library
String
name
=
NativeLibrary
.
findBuiltinLib
(
file
.
getName
());
String
name
=
findBuiltinLib
(
file
.
getName
());
boolean
isBuiltin
=
(
name
!=
null
);
if
(!
isBuiltin
)
{
boolean
exists
=
AccessController
.
doPrivileged
(
...
...
src/share/classes/sun/text/resources/en/FormatData_en_SG.java
浏览文件 @
7c904525
...
...
@@ -88,6 +88,14 @@ public class FormatData_en_SG extends ParallelListResourceBundle {
"NaN"
,
}
},
{
"DatePatterns"
,
new
String
[]
{
"EEEE, d MMMM, yyyy"
,
// full date pattern
"d MMMM, yyyy"
,
// long date pattern
"d MMM, yyyy"
,
// medium date pattern
"d/M/yy"
,
// short date pattern
}
},
};
}
}
src/share/native/java/lang/ClassLoader.c
浏览文件 @
7c904525
/*
* Copyright (c) 1996, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
5
, 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
...
...
@@ -493,12 +493,12 @@ Java_java_lang_ClassLoader_00024NativeLibrary_find
return
res
;
}
/*
* Class: java_lang_ClassLoader
_NativeLibrary
* Class: java_lang_ClassLoader
* Method: findBuiltinLib
* Signature: (Ljava/lang/String;)Ljava/lang/String;
*/
JNIEXPORT
jstring
JNICALL
Java_java_lang_ClassLoader_
00024NativeLibrary_
findBuiltinLib
Java_java_lang_ClassLoader_findBuiltinLib
(
JNIEnv
*
env
,
jclass
cls
,
jstring
name
)
{
const
char
*
cname
;
...
...
@@ -514,8 +514,6 @@ Java_java_lang_ClassLoader_00024NativeLibrary_findBuiltinLib
JNU_ThrowInternalError
(
env
,
"NULL filename for native library"
);
return
NULL
;
}
// Can't call initIDs because it will recurse into NativeLibrary via
// FindClass to check context so set prochandle here as well.
procHandle
=
getProcessHandle
();
cname
=
JNU_GetStringPlatformChars
(
env
,
name
,
0
);
if
(
cname
==
NULL
)
{
...
...
src/share/native/sun/font/layout/LookupProcessor.cpp
浏览文件 @
7c904525
...
...
@@ -175,7 +175,7 @@ LookupProcessor::LookupProcessor(const LETableReference &baseAddress,
LEReferenceTo
<
LangSysTable
>
langSysTable
;
le_uint16
featureCount
=
0
;
le_uint16
lookupListCount
=
0
;
le_uint16
requiredFeatureIndex
;
le_uint16
requiredFeatureIndex
=
0xFFFF
;
if
(
LE_FAILURE
(
success
))
{
return
;
...
...
src/solaris/classes/sun/awt/X11/XToolkit.java
浏览文件 @
7c904525
...
...
@@ -2399,7 +2399,7 @@ public final class XToolkit extends UNIXToolkit implements Runnable {
private
static
XEventDispatcher
oops_waiter
;
private
static
boolean
oops_updated
;
private
static
boolean
oops_move
;
private
static
int
oops_position
=
0
;
/**
* @inheritDoc
...
...
@@ -2426,9 +2426,12 @@ public final class XToolkit extends UNIXToolkit implements Runnable {
oops_updated
=
false
;
long
event_number
=
getEventNumber
();
// Generate OOPS ConfigureNotify event
XlibWrapper
.
XMoveWindow
(
getDisplay
(),
win
.
getWindow
(),
oops_move
?
0
:
1
,
0
);
XlibWrapper
.
XMoveWindow
(
getDisplay
(),
win
.
getWindow
(),
++
oops_position
,
0
);
// Change win position each time to avoid system optimization
oops_move
=
!
oops_move
;
if
(
oops_position
>
50
)
{
oops_position
=
0
;
}
XSync
();
eventLog
.
finer
(
"Generated OOPS ConfigureNotify event"
);
...
...
test/com/sun/jdi/AllLineLocations.java
浏览文件 @
7c904525
...
...
@@ -27,7 +27,6 @@
* @summary Test ReferenceType.allLineLocations
* @author Gordon Hirsch
*
* @library scaffold
* @run build JDIScaffold VMConnection
* @run compile -g RefTypes.java
* @run build AllLineLocations
...
...
test/com/sun/jdi/ClassesByName.java
浏览文件 @
7c904525
...
...
@@ -26,7 +26,6 @@
* @bug 4287992
* @author Robert Field
*
* @library scaffold
* @run build JDIScaffold VMConnection
* @run compile -g HelloWorld.java
* @run build ClassesByName
...
...
test/com/sun/jdi/ExceptionEvents.java
浏览文件 @
7c904525
...
...
@@ -28,7 +28,6 @@
*
* @author Robert Field
*
* @library scaffold
* @run build TestScaffold VMConnection
* @run compile -g ExceptionEvents.java
*
...
...
test/com/sun/jdi/FilterMatch.java
浏览文件 @
7c904525
...
...
@@ -28,7 +28,6 @@
*
* @author Robert Field/Jim Holmlund
*
* @library scaffold
* @run build JDIScaffold VMConnection
* @run compile -g HelloWorld.java
* @run main/othervm FilterMatch
...
...
test/com/sun/jdi/FilterNoMatch.java
浏览文件 @
7c904525
...
...
@@ -28,7 +28,6 @@
*
* @author Robert Field/Jim Holmlund
*
* @library scaffold
* @run build JDIScaffold VMConnection
* @run compile -g HelloWorld.java
* @run main/othervm FilterNoMatch
...
...
test/com/sun/jdi/LaunchCommandLine.java
浏览文件 @
7c904525
...
...
@@ -27,7 +27,6 @@
* @summary Test launcher command line construction
* @author Gordon Hirsch
*
* @library scaffold
* @run build JDIScaffold VMConnection
* @run compile -g HelloWorld.java
* @run build LaunchCommandLine
...
...
test/com/sun/jdi/ModificationWatchpoints.java
浏览文件 @
7c904525
...
...
@@ -29,7 +29,6 @@
* @author Daniel Prusa (or someone in the FFJ group)
* @author Robert Field (modified to JDIScaffold)
*
* @library scaffold
* @run build JDIScaffold VMConnection
* @run compile -g ModificationWatchpoints.java
* @run main/othervm ModificationWatchpoints
...
...
test/com/sun/jdi/NativeInstanceFilter.java
浏览文件 @
7c904525
...
...
@@ -28,7 +28,6 @@
*
* @author Keith McGuigan
*
* @library scaffold
* @run build JDIScaffold VMConnection
* @compile -XDignore.symbol.file NativeInstanceFilterTarg.java
* @run main/othervm NativeInstanceFilter
...
...
test/com/sun/jdi/UnpreparedByName.java
浏览文件 @
7c904525
...
...
@@ -28,7 +28,6 @@
* won't be returned by classesByName.
* @author Robert Field
*
* @library scaffold
* @run build JDIScaffold VMConnection
* @run compile -g InnerTarg.java
* @run build UnpreparedByName
...
...
test/com/sun/jdi/UnpreparedClasses.java
浏览文件 @
7c904525
...
...
@@ -28,7 +28,6 @@
* loaded class list are prepared classes.
* @author Robert Field
*
* @library scaffold
* @run build JDIScaffold VMConnection
* @run compile -g InnerTarg.java
* @run build UnpreparedClasses
...
...
test/com/sun/jdi/Vars.java
浏览文件 @
7c904525
...
...
@@ -27,7 +27,6 @@
*
* @author Robert Field
*
* @library scaffold
* @run build JDIScaffold VMConnection
* @run compile -g Vars.java
* @run main/othervm Vars
...
...
test/java/text/Format/DateFormat/LocaleDateFormats.java
0 → 100644
浏览文件 @
7c904525
/*
* Copyright (c) 2015, 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 8080774
* @run testng/othervm -Djava.locale.providers=JRE,CLDR LocaleDateFormats
* @summary This file contains tests for JRE locales date formats
*/
import
java.text.DateFormat
;
import
java.util.Calendar
;
import
java.util.Locale
;
import
static
org
.
testng
.
Assert
.
assertEquals
;
import
org.testng.annotations.DataProvider
;
import
org.testng.annotations.Test
;
public
class
LocaleDateFormats
{
@Test
(
dataProvider
=
"dateFormats"
)
public
void
testDateFormat
(
Locale
loc
,
int
style
,
int
year
,
int
month
,
int
date
,
String
expectedString
)
{
Calendar
cal
=
Calendar
.
getInstance
(
loc
);
cal
.
set
(
year
,
month
-
1
,
date
);
// Create date formatter based on requested style and test locale
DateFormat
df
=
DateFormat
.
getDateInstance
(
style
,
loc
);
// Test the date format
assertEquals
(
df
.
format
(
cal
.
getTime
()),
expectedString
);
}
@DataProvider
(
name
=
"dateFormats"
)
private
Object
[][]
dateFormats
()
{
return
new
Object
[][]
{
//8080774
//Locale, Format type, year, month, date, expected result
{
localeEnSG
,
DateFormat
.
SHORT
,
2015
,
5
,
6
,
"6/5/15"
},
{
localeEnSG
,
DateFormat
.
MEDIUM
,
2015
,
5
,
6
,
"6 May, 2015"
},
{
localeEnSG
,
DateFormat
.
LONG
,
2015
,
5
,
6
,
"6 May, 2015"
},
{
localeEnSG
,
DateFormat
.
FULL
,
2015
,
5
,
6
,
"Wednesday, 6 May, 2015"
}
};
}
// en_SG Locale instance
private
static
final
Locale
localeEnSG
=
new
Locale
(
"en"
,
"SG"
);
}
test/sun/text/resources/LocaleData
浏览文件 @
7c904525
...
...
@@ -5417,11 +5417,13 @@ FormatData/en_SG/TimePatterns/0=h:mm:ss a z
FormatData/en_SG/TimePatterns/1=h:mm:ss a z
FormatData/en_SG/TimePatterns/2=h:mm:ss a
FormatData/en_SG/TimePatterns/3=h:mm a
FormatData/en_SG/DatePatterns/0=EEEE, MMMM d, yyyy
FormatData/en_SG/DatePatterns/1=MMMM d, yyyy
FormatData/en_SG/DatePatterns/2=MMM d, yyyy
FormatData/en_SG/DatePatterns/3=M/d/yy
FormatData/en_SG/DateTimePatterns/0={1} {0}
# bug# 8080774
# Day should precede month for all date formats in en_SG - CLDR 27.0.0
FormatData/en_SG/DatePatterns/0=EEEE, d MMMM, yyyy
FormatData/en_SG/DatePatterns/1=d MMMM, yyyy
FormatData/en_SG/DatePatterns/2=d MMM, yyyy
FormatData/en_SG/DatePatterns/3=d/M/yy
# Use approved data
FormatData/ms/Eras/0=BCE
FormatData/ms/Eras/1=CE
...
...
test/sun/text/resources/LocaleDataTest.java
浏览文件 @
7c904525
...
...
@@ -36,7 +36,7 @@
* 6919624 6998391 7019267 7020960 7025837 7020583 7036905 7066203 7101495
* 7003124 7085757 7028073 7171028 7189611 8000983 7195759 8004489 8006509
* 7114053 7074882 7040556 8013836 8021121 6192407 6931564 8027695 7090826
* 8017142 8037343 8055222 8042126 8074791 8075173
* 8017142 8037343 8055222 8042126 8074791 8075173
8080774
* @summary Verify locale data
*
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录