提交 69ac777d 编写于 作者: R rpatil

8192757: Improve stub classes implementation

Reviewed-by: rriggs, dfuchs, erikj
上级 87e68933
/*
* Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2018, 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
......@@ -245,7 +245,7 @@ public class ObjectInputStream
static {
/* Setup access so sun.misc can invoke package private functions. */
sun.misc.SharedSecrets.setJavaOISAccess(new JavaOISAccess() {
JavaOISAccess javaOISAccess = new JavaOISAccess() {
public void setObjectInputFilter(ObjectInputStream stream, ObjectInputFilter filter) {
stream.setInternalObjectInputFilter(filter);
}
......@@ -259,7 +259,11 @@ public class ObjectInputStream
{
stream.checkArray(arrayType, arrayLength);
}
});
};
sun.misc.SharedSecrets.setJavaOISAccess(javaOISAccess);
sun.corba.SharedSecrets.setJavaOISAccess(javaOISAccess);
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册