mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-05 04:31:36 +00:00
8062807: Exporting RMI objects fails when run under restrictive SecurityManager
Reviewed-by: dfuchs, skoivu, igerasim, msheppar
This commit is contained in:
parent
5b517ee996
commit
75ffcef61d
@ -668,19 +668,19 @@ public class TCPTransport extends Transport {
|
||||
}
|
||||
|
||||
public void run() {
|
||||
AccessController.doPrivileged((PrivilegedAction<Void>)() -> {
|
||||
Thread t = Thread.currentThread();
|
||||
String name = t.getName();
|
||||
try {
|
||||
t.setName("RMI TCP Connection(" +
|
||||
connectionCount.incrementAndGet() +
|
||||
")-" + remoteHost);
|
||||
run0();
|
||||
} finally {
|
||||
t.setName(name);
|
||||
}
|
||||
Thread t = Thread.currentThread();
|
||||
String name = t.getName();
|
||||
try {
|
||||
t.setName("RMI TCP Connection(" +
|
||||
connectionCount.incrementAndGet() +
|
||||
")-" + remoteHost);
|
||||
AccessController.doPrivileged((PrivilegedAction<Void>)() -> {
|
||||
run0();
|
||||
return null;
|
||||
}, NOPERMS_ACC);
|
||||
} finally {
|
||||
t.setName(name);
|
||||
}
|
||||
}
|
||||
|
||||
private void run0() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user