Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
1e325589
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看板
提交
1e325589
编写于
8月 01, 2014
作者:
C
coffeys
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
ba63f3a1
224c42c0
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
30 addition
and
68 deletion
+30
-68
.hgtags
.hgtags
+5
-0
THIRD_PARTY_README
THIRD_PARTY_README
+8
-8
javax/management/remote/security/CacheMapRemovalTest.java
javax/management/remote/security/CacheMapRemovalTest.java
+0
-56
src/share/classes/java/util/Collections.java
src/share/classes/java/util/Collections.java
+1
-0
src/share/classes/sun/security/smartcardio/CardImpl.java
src/share/classes/sun/security/smartcardio/CardImpl.java
+4
-3
test/java/util/Collections/CheckedListReplaceAll.java
test/java/util/Collections/CheckedListReplaceAll.java
+12
-1
未找到文件。
.hgtags
浏览文件 @
1e325589
...
@@ -309,6 +309,9 @@ d723d05cd17afd5c4dd4293bcba83fef44a3c0bb jdk8u20-b16
...
@@ -309,6 +309,9 @@ d723d05cd17afd5c4dd4293bcba83fef44a3c0bb jdk8u20-b16
693025bbc45d683676fa78bb76201b665e0d8f2d jdk8u20-b21
693025bbc45d683676fa78bb76201b665e0d8f2d jdk8u20-b21
0c2393744b29175de5204140d4dfbf12ca3d364f jdk8u20-b22
0c2393744b29175de5204140d4dfbf12ca3d364f jdk8u20-b22
be30cb2a3088f2b7b334b499f7eddbd5312312a7 jdk8u20-b23
be30cb2a3088f2b7b334b499f7eddbd5312312a7 jdk8u20-b23
dfb9f24d56b51e5a2ca26e77fc69a2464d51a4d3 jdk8u20-b24
dfb9f24d56b51e5a2ca26e77fc69a2464d51a4d3 jdk8u20-b25
dd229c5f57bff4e75a70908294a13072b9a48385 jdk8u20-b26
abca9f6f1a10e9f91b2538bbe7870f54f550d986 jdk8u25-b00
abca9f6f1a10e9f91b2538bbe7870f54f550d986 jdk8u25-b00
7d0627679c9fdeaaaa9fe15c7cc11af0763621ec jdk8u25-b01
7d0627679c9fdeaaaa9fe15c7cc11af0763621ec jdk8u25-b01
b0277ec994b751ebb761814675352506cd56bcd6 jdk8u25-b02
b0277ec994b751ebb761814675352506cd56bcd6 jdk8u25-b02
...
@@ -318,4 +321,6 @@ b0277ec994b751ebb761814675352506cd56bcd6 jdk8u25-b02
...
@@ -318,4 +321,6 @@ b0277ec994b751ebb761814675352506cd56bcd6 jdk8u25-b02
5b80b4b22b4ca0b630c7f1cec3605da7694168e2 jdk8u25-b06
5b80b4b22b4ca0b630c7f1cec3605da7694168e2 jdk8u25-b06
0e0a35b0bf0ff5852026c50038d5c2ecb26c075c jdk8u25-b07
0e0a35b0bf0ff5852026c50038d5c2ecb26c075c jdk8u25-b07
d7d221f56fd17b96bab4440448641a844f9e92cd jdk8u25-b08
d7d221f56fd17b96bab4440448641a844f9e92cd jdk8u25-b08
0c6cf43c5bcf0917d07a1bc94adb7a091f18f32c jdk8u25-b09
1317d94e95861a47fee8258903b652af70a3493c jdk8u25-b10
f935349e2c065487c745bc41f81ddc7869bd2d2d jdk8u31-b00
f935349e2c065487c745bc41f81ddc7869bd2d2d jdk8u31-b00
THIRD_PARTY_README
浏览文件 @
1e325589
...
@@ -2,7 +2,7 @@ DO NOT TRANSLATE OR LOCALIZE.
...
@@ -2,7 +2,7 @@ DO NOT TRANSLATE OR LOCALIZE.
-----------------------------
-----------------------------
%% This notice is provided with respect to ASM Bytecode Manipulation
%% This notice is provided with respect to ASM Bytecode Manipulation
Framework v5.0, which may be included with JRE 8, and JDK 8, and
Framework v5.0
.3
, which may be included with JRE 8, and JDK 8, and
OpenJDK 8.
OpenJDK 8.
--- begin of LICENSE ---
--- begin of LICENSE ---
...
@@ -3349,14 +3349,14 @@ info@urwpp.de or design@bigelowandholmes.com
...
@@ -3349,14 +3349,14 @@ info@urwpp.de or design@bigelowandholmes.com
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
%% This notice is provided with respect to zlib v1.2.
5
, which may be included
%% This notice is provided with respect to zlib v1.2.
8
, which may be included
with JRE 8, JDK 8, and OpenJDK 8.
with JRE 8, JDK 8, and OpenJDK 8.
--- begin of LICENSE ---
--- begin of LICENSE ---
version 1.2.
5, July 18th, 2005
version 1.2.
8, April 28th, 2013
Copyright (C) 1995-20
05
Jean-loup Gailly and Mark Adler
Copyright (C) 1995-20
13
Jean-loup Gailly and Mark Adler
This software is provided 'as-is', without any express or implied
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
warranty. In no event will the authors be held liable for any damages
...
@@ -3382,11 +3382,11 @@ with JRE 8, JDK 8, and OpenJDK 8.
...
@@ -3382,11 +3382,11 @@ with JRE 8, JDK 8, and OpenJDK 8.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
%% This notice is provided with respect to the following which may be
%% This notice is provided with respect to the following which may be
included with JRE 8, JDK 8, and OpenJDK 8
, except where noted:
included with JRE 8, JDK 8, and OpenJDK 8
.
Apache Commons Math
2
.2
Apache Commons Math
3
.2
Apache Derby 10.10.1.
2 [included with JDK 8]
Apache Derby 10.10.1.
3
Apache Jakarta BCEL 5.
2
Apache Jakarta BCEL 5.
1
Apache Jakarta Regexp 1.4
Apache Jakarta Regexp 1.4
Apache Santuario XML Security for Java 1.5.4
Apache Santuario XML Security for Java 1.5.4
Apache Xalan-Java 2.7.1
Apache Xalan-Java 2.7.1
...
...
javax/management/remote/security/CacheMapRemovalTest.java
已删除
100644 → 0
浏览文件 @
ba63f3a1
/*
* 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 8029755
* @summary Test that class com/sun/jmx/remote/util/CacheMap and fields principalsCache, accCache of SubjectDelegator were removed
*
* @compile CacheMapRemovalTest.java
* @run main CacheMapRemovalTest
*/
public
class
CacheMapRemovalTest
{
public
static
void
main
(
String
[]
args
)
{
try
{
Class
.
forName
(
"com.sun.jmx.remote.util.CacheMap"
);
throw
new
AssertionError
(
"Class CacheMap was not removed"
);
}
catch
(
ClassNotFoundException
e
)
{
System
.
out
.
println
(
"com.sun.jmx.remote.util.CacheMap removal verified"
);
}
try
{
com
.
sun
.
jmx
.
remote
.
security
.
SubjectDelegator
.
class
.
getDeclaredField
(
"principalsCache"
);
throw
new
AssertionError
(
"principalsCache field of SubjectDelegator was not removed"
);
}
catch
(
NoSuchFieldException
e
)
{
System
.
out
.
println
(
"principalsCache field of SubjectDelegator removal verified"
);
}
try
{
com
.
sun
.
jmx
.
remote
.
security
.
SubjectDelegator
.
class
.
getDeclaredField
(
"accCache"
);
throw
new
AssertionError
(
"accCache field of SubjectDelegator was not removed"
);
}
catch
(
NoSuchFieldException
e
)
{
System
.
out
.
println
(
"accCache field of SubjectDelegator removal verified"
);
}
}
}
src/share/classes/java/util/Collections.java
浏览文件 @
1e325589
...
@@ -3486,6 +3486,7 @@ public class Collections {
...
@@ -3486,6 +3486,7 @@ public class Collections {
*/
*/
@Override
@Override
public
void
replaceAll
(
UnaryOperator
<
E
>
operator
)
{
public
void
replaceAll
(
UnaryOperator
<
E
>
operator
)
{
Objects
.
requireNonNull
(
operator
);
list
.
replaceAll
(
e
->
typeCheck
(
operator
.
apply
(
e
)));
list
.
replaceAll
(
e
->
typeCheck
(
operator
.
apply
(
e
)));
}
}
...
...
src/share/classes/sun/security/smartcardio/CardImpl.java
浏览文件 @
1e325589
...
@@ -244,9 +244,6 @@ final class CardImpl extends Card {
...
@@ -244,9 +244,6 @@ final class CardImpl extends Card {
"sun.security.smartcardio.invertCardReset"
,
"false"
)));
"sun.security.smartcardio.invertCardReset"
,
"false"
)));
public
void
disconnect
(
boolean
reset
)
throws
CardException
{
public
void
disconnect
(
boolean
reset
)
throws
CardException
{
if
(
invertReset
)
{
reset
=
!
reset
;
}
if
(
reset
)
{
if
(
reset
)
{
checkSecurity
(
"reset"
);
checkSecurity
(
"reset"
);
}
}
...
@@ -254,6 +251,10 @@ final class CardImpl extends Card {
...
@@ -254,6 +251,10 @@ final class CardImpl extends Card {
return
;
return
;
}
}
checkExclusive
();
checkExclusive
();
// to preserve old behaviour, don't change flag until here
if
(
invertReset
)
{
reset
=
!
reset
;
}
try
{
try
{
SCardDisconnect
(
cardId
,
(
reset
?
SCARD_RESET_CARD
:
SCARD_LEAVE_CARD
));
SCardDisconnect
(
cardId
,
(
reset
?
SCARD_RESET_CARD
:
SCARD_LEAVE_CARD
));
}
catch
(
PCSCException
e
)
{
}
catch
(
PCSCException
e
)
{
...
...
test/java/util/Collections/CheckedListReplaceAll.java
浏览文件 @
1e325589
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
/*
/*
* @test
* @test
* @bug 8047795
* @bug 8047795
8053938
* @summary Ensure that replaceAll operator cannot add bad elements
* @summary Ensure that replaceAll operator cannot add bad elements
* @author Mike Duigou
* @author Mike Duigou
*/
*/
...
@@ -46,5 +46,16 @@ public class CheckedListReplaceAll {
...
@@ -46,5 +46,16 @@ public class CheckedListReplaceAll {
thwarted
.
printStackTrace
(
System
.
out
);
thwarted
.
printStackTrace
(
System
.
out
);
System
.
out
.
println
(
"Curses! Foiled again!"
);
System
.
out
.
println
(
"Curses! Foiled again!"
);
}
}
unwrapped
=
Arrays
.
asList
(
new
Object
[]{});
// Empty list
wrapped
=
Collections
.
checkedList
(
unwrapped
,
Integer
.
class
);
try
{
wrapped
.
replaceAll
((
UnaryOperator
)
null
);
System
.
out
.
printf
(
"Bwahaha! I have defeated you! %s\n"
,
wrapped
);
throw
new
RuntimeException
(
"NPE not thrown when passed a null operator"
);
}
catch
(
NullPointerException
thwarted
)
{
thwarted
.
printStackTrace
(
System
.
out
);
System
.
out
.
println
(
"Curses! Foiled again!"
);
}
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录