Connection.java: Use GetPropertyAction for privileged getProperty calls.
authorBryce McKinlay <mckinlay@redhat.com>
Fri, 23 Jul 2004 22:20:14 +0000 (22:20 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Fri, 23 Jul 2004 22:20:14 +0000 (23:20 +0100)
commitec5c28ece1abe76452e1c70918fb44c543b71a81
tree96dc496d784f2249834ceb7610963655c445967c
parentae066484dfc4edafddbcf5089720d8ceef28c232
Connection.java: Use GetPropertyAction for privileged getProperty calls.

2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>

* gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
for privileged getProperty calls.
* java/io/ObjectOutputStream.java (getField): No longer static. Use
SetAccessibleAction instead of anonymous class for doPrivileged
call.
(getMethod): Likewise.
(setAccessible): New field. PrivilegedAction object to use when
calling setAccessible.
* java/io/ObjectStreamClass.java (calculateOffsets): Use
SetAccessibleAction instead of anonymous class for diPrivileged
call.
(setFields): Likewise.
(getClassUID): Likewise.
(findMethod): Likewise.
* gnu/java/security/action/GetPropertyAction.java: New class.
* gnu/java/security/action/SetAccessibleAction.java: New class.

From-SVN: r85097
libjava/ChangeLog
libjava/gnu/java/net/protocol/http/Connection.java
libjava/gnu/java/security/action/GetPropertyAction.java [new file with mode: 0644]
libjava/gnu/java/security/action/SetAccessibleAction.java [new file with mode: 0644]
libjava/java/io/ObjectOutputStream.java
libjava/java/io/ObjectStreamClass.java