Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
234e6e30
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看板
提交
234e6e30
编写于
7月 29, 2013
作者:
C
chegar
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
397aab0b
f57a1876
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
21 deletion
+13
-21
src/share/classes/javax/management/MBeanNotificationInfo.java
...share/classes/javax/management/MBeanNotificationInfo.java
+1
-6
src/share/classes/javax/management/remote/NotificationResult.java
...e/classes/javax/management/remote/NotificationResult.java
+9
-8
src/share/classes/javax/management/remote/TargetedNotification.java
...classes/javax/management/remote/TargetedNotification.java
+2
-6
test/javax/management/remote/mandatory/loading/MissingClassTest.java
...management/remote/mandatory/loading/MissingClassTest.java
+1
-1
未找到文件。
src/share/classes/javax/management/MBeanNotificationInfo.java
浏览文件 @
234e6e30
...
...
@@ -210,11 +210,6 @@ public class MBeanNotificationInfo extends MBeanFeatureInfo implements Cloneable
ObjectInputStream
.
GetField
gf
=
ois
.
readFields
();
String
[]
t
=
(
String
[])
gf
.
get
(
"types"
,
null
);
if
(
t
==
null
)
{
throw
new
InvalidObjectException
(
"Trying to deserialize an invalid "
+
"instance of "
+
MBeanNotificationInfo
.
class
+
"[types=null]"
);
}
types
=
t
.
length
==
0
?
t
:
t
.
clone
();
types
=
(
t
!=
null
&&
t
.
length
!=
0
)
?
t
.
clone
()
:
NO_TYPES
;
}
}
src/share/classes/javax/management/remote/NotificationResult.java
浏览文件 @
234e6e30
...
...
@@ -132,16 +132,17 @@ public class NotificationResult implements Serializable {
}
private
void
readObject
(
ObjectInputStream
ois
)
throws
IOException
,
ClassNotFoundException
{
ObjectInputStream
.
GetField
gf
=
ois
.
readFields
();
TargetedNotification
[]
tNotifs
=
(
TargetedNotification
[])
gf
.
get
(
"targetedNotifications"
,
null
);
long
snStart
=
gf
.
get
(
"earliestSequenceNumber"
,
-
1L
);
long
snNext
=
gf
.
get
(
"nextSequenceNumber"
,
-
1L
);
ois
.
defaultReadObject
();
try
{
validate
(
tNotifs
,
snStart
,
snNext
);
validate
(
this
.
targetedNotifications
,
this
.
earliestSequenceNumber
,
this
.
nextSequenceNumber
);
this
.
targetedNotifications
=
t
Notifs
.
length
==
0
?
tNotifs
:
tNotifs
.
clone
();
this
.
earliestSequenceNumber
=
snStart
;
this
.
nextSequenceNumber
=
snNext
;
this
.
targetedNotifications
=
t
his
.
targetedNotifications
.
length
==
0
?
this
.
targetedNotifications
:
this
.
targetedNotifications
.
clone
()
;
}
catch
(
IllegalArgumentException
e
)
{
throw
new
InvalidObjectException
(
e
.
getMessage
());
}
...
...
src/share/classes/javax/management/remote/TargetedNotification.java
浏览文件 @
234e6e30
...
...
@@ -132,13 +132,9 @@ public class TargetedNotification implements Serializable {
// }
private
void
readObject
(
ObjectInputStream
ois
)
throws
IOException
,
ClassNotFoundException
{
ObjectInputStream
.
GetField
gf
=
ois
.
readFields
();
Notification
notification
=
(
Notification
)
gf
.
get
(
"notif"
,
null
);
Integer
listenerId
=
(
Integer
)
gf
.
get
(
"id"
,
null
);
ois
.
defaultReadObject
();
try
{
validate
(
notification
,
listenerId
);
this
.
notif
=
notification
;
this
.
id
=
listenerId
;
validate
(
this
.
notif
,
this
.
id
);
}
catch
(
IllegalArgumentException
e
)
{
throw
new
InvalidObjectException
(
e
.
getMessage
());
}
...
...
test/javax/management/remote/mandatory/loading/MissingClassTest.java
浏览文件 @
234e6e30
...
...
@@ -23,7 +23,7 @@
/*
* @test
* @bug 4915825 4921009 4934965 4977469
* @bug 4915825 4921009 4934965 4977469
8019584
* @summary Tests behavior when client or server gets object of unknown class
* @author Eamonn McManus
* @run clean MissingClassTest SingleClassLoader
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录