Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
db5bee27
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看板
提交
db5bee27
编写于
6月 14, 2013
作者:
M
msheppar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8011157: Improve CORBA portablility
Summary: fix also reviewed by Alexander Fomin Reviewed-by: alanb, coffeys, skoivu
上级
3c8cbb52
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
21 addition
and
7 deletion
+21
-7
make/com/sun/jmx/Makefile
make/com/sun/jmx/Makefile
+2
-0
src/share/classes/javax/management/modelmbean/RequiredModelMBean.java
...asses/javax/management/modelmbean/RequiredModelMBean.java
+6
-2
src/share/classes/javax/management/remote/rmi/RMIConnector.java
...are/classes/javax/management/remote/rmi/RMIConnector.java
+13
-5
未找到文件。
make/com/sun/jmx/Makefile
浏览文件 @
db5bee27
...
...
@@ -130,11 +130,13 @@ $(CLASSDESTDIR)/%_Stub.class: $(CLASSDESTDIR)/%.class
$(RMIC)
-classpath
"
$(CLASSDESTDIR)
"
\
-d
$(CLASSDESTDIR)
\
-iiop
-v1
.2
\
-emitPermissionCheck
\
$(
subst
/,.,
$
(
<:
$(CLASSDESTDIR)
/%.class
=
%
))
$(RMIC)
$(HOTSPOT_INTERPRETER_FLAG)
-classpath
"
$(CLASSDESTDIR)
"
\
-d
$(CLASSDESTDIR)
\
-iiop
-v1
.2
\
-standardPackage
\
-emitPermissionCheck
\
$(
subst
/,.,
$
(
<:
$(CLASSDESTDIR)
/%.class
=
%
))
@
$
(
java-vm-cleanup
)
...
...
src/share/classes/javax/management/modelmbean/RequiredModelMBean.java
浏览文件 @
db5bee27
/*
* Copyright (c) 2000, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
3
, 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
...
...
@@ -298,11 +298,15 @@ public class RequiredModelMBean
RequiredModelMBean
.
class
.
getName
(),
"setModelMBeanInfo(ModelMBeanInfo)"
,
"Setting ModelMBeanInfo to "
+
printModelMBeanInfo
(
mbi
));
int
noOfNotifications
=
0
;
if
(
mbi
.
getNotifications
()
!=
null
)
{
noOfNotifications
=
mbi
.
getNotifications
().
length
;
}
MODELMBEAN_LOGGER
.
logp
(
Level
.
FINER
,
RequiredModelMBean
.
class
.
getName
(),
"setModelMBeanInfo(ModelMBeanInfo)"
,
"ModelMBeanInfo notifications has "
+
(
mbi
.
getNotifications
()).
length
+
" elements"
);
noOfNotifications
+
" elements"
);
}
modelMBeanInfo
=
(
ModelMBeanInfo
)
mbi
.
clone
();
...
...
src/share/classes/javax/management/remote/rmi/RMIConnector.java
浏览文件 @
db5bee27
/*
* Copyright (c) 2002, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 201
3
, 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
...
...
@@ -61,6 +61,7 @@ import java.rmi.server.RemoteRef;
import
java.security.AccessController
;
import
java.security.PrivilegedAction
;
import
java.security.PrivilegedExceptionAction
;
import
java.security.PrivilegedActionException
;
import
java.security.ProtectionDomain
;
import
java.util.Arrays
;
import
java.util.Collections
;
...
...
@@ -128,7 +129,6 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
Map
<
String
,
?>
environment
)
{
if
(
rmiServer
==
null
&&
address
==
null
)
throw
new
IllegalArgumentException
(
"rmiServer and jmxServiceURL both null"
);
initTransients
();
this
.
rmiServer
=
rmiServer
;
...
...
@@ -2370,13 +2370,21 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
}
}
private
static
RMIConnection
shadowIiopStub
(
Object
stub
)
private
static
RMIConnection
shadowIiopStub
(
Object
stub
)
throws
InstantiationException
,
IllegalAccessException
{
Object
proxyStub
=
proxyStubClass
.
newInstance
();
Object
proxyStub
=
null
;
try
{
proxyStub
=
AccessController
.
doPrivileged
(
new
PrivilegedExceptionAction
<
Object
>()
{
public
Object
run
()
throws
Exception
{
return
proxyStubClass
.
newInstance
();
}
});
}
catch
(
PrivilegedActionException
e
)
{
throw
new
InternalError
();
}
IIOPHelper
.
setDelegate
(
proxyStub
,
IIOPHelper
.
getDelegate
(
stub
));
return
(
RMIConnection
)
proxyStub
;
}
private
static
RMIConnection
getConnection
(
RMIServer
server
,
Object
credentials
,
boolean
checkStub
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录