Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
0373934a
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看板
提交
0373934a
编写于
10月 22, 2013
作者:
D
darcy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8027062: Fix lint and doclint issues in java.lang.{ClassLoader, ClassValue, SecurityManager}
Reviewed-by: chegar, forax, alanb, mduigou
上级
5c7eb1c5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
9 deletion
+8
-9
src/share/classes/java/lang/ClassLoader.java
src/share/classes/java/lang/ClassLoader.java
+2
-2
src/share/classes/java/lang/ClassValue.java
src/share/classes/java/lang/ClassValue.java
+1
-1
src/share/classes/java/lang/SecurityManager.java
src/share/classes/java/lang/SecurityManager.java
+5
-6
未找到文件。
src/share/classes/java/lang/ClassLoader.java
浏览文件 @
0373934a
...
...
@@ -362,7 +362,7 @@ public abstract class ClassLoader {
* default implementation of this method searches for classes in the
* following order:
*
* <
p><
ol>
* <ol>
*
* <li><p> Invoke {@link #findLoadedClass(String)} to check if the class
* has already been loaded. </p></li>
...
...
@@ -488,7 +488,7 @@ public abstract class ClassLoader {
final
SecurityManager
sm
=
System
.
getSecurityManager
();
if
(
sm
!=
null
)
{
if
(
ReflectUtil
.
isNonPublicProxyClass
(
cls
))
{
for
(
Class
intf:
cls
.
getInterfaces
())
{
for
(
Class
<?>
intf:
cls
.
getInterfaces
())
{
checkPackageAccess
(
intf
,
pd
);
}
return
;
...
...
src/share/classes/java/lang/ClassValue.java
浏览文件 @
0373934a
...
...
@@ -692,7 +692,7 @@ public abstract class ClassValue<T> {
/** Remove all stale entries, everywhere. */
private
void
removeStaleEntries
()
{
Entry
[]
cache
=
getCache
();
Entry
<?>
[]
cache
=
getCache
();
removeStaleEntries
(
cache
,
0
,
cache
.
length
+
PROBE_LIMIT
-
1
);
}
...
...
src/share/classes/java/lang/SecurityManager.java
浏览文件 @
0373934a
...
...
@@ -56,7 +56,7 @@ import sun.security.util.SecurityConstants;
* are called by various methods in the Java libraries before those
* methods perform certain potentially sensitive operations. The
* invocation of such a <code>check</code> method typically looks like this:
* <
p><
blockquote><pre>
* <blockquote><pre>
* SecurityManager security = System.getSecurityManager();
* if (security != null) {
* security.check<i>XXX</i>(argument, . . . );
...
...
@@ -323,7 +323,7 @@ class SecurityManager {
* by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors.
* <p>
* This method will return
* <code>null</code> in the following three cases:
<p>
* <code>null</code> in the following three cases:
* <ol>
* <li>All methods on the execution stack are from classes
* defined using the system class loader or one of its ancestors.
...
...
@@ -370,7 +370,7 @@ class SecurityManager {
* by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors.
* <p>
* This method will return
* <code>null</code> in the following three cases:
<p>
* <code>null</code> in the following three cases:
* <ol>
* <li>All methods on the execution stack are from classes
* defined using the system class loader or one of its ancestors.
...
...
@@ -429,7 +429,7 @@ class SecurityManager {
* by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors.
* <p>
* This method will return
* -1 in the following three cases:
<p>
* -1 in the following three cases:
* <ol>
* <li>All methods on the execution stack are from classes
* defined using the system class loader or one of its ancestors.
...
...
@@ -1281,7 +1281,6 @@ class SecurityManager {
* This method calls <code>checkPermission</code> with the
* <code>PropertyPermission(key, "read")</code> permission.
* <p>
* <p>
* If you override this method, then you should make a call to
* <code>super.checkPropertyAccess</code>
* at the point the overridden method would normally throw an
...
...
@@ -1714,7 +1713,7 @@ class SecurityManager {
throw
new
NullPointerException
(
"class can't be null"
);
}
if
(
which
!=
Member
.
PUBLIC
)
{
Class
stack
[]
=
getClassContext
();
Class
<?>
stack
[]
=
getClassContext
();
/*
* stack depth of 4 should be the caller of one of the
* methods in java.lang.Class that invoke checkMember
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录