mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8267521: Post JEP 411 refactoring: maximum covering > 50K
Reviewed-by: dfuchs, prr
This commit is contained in:
parent
40d23a0c0b
commit
508cec7535
18 changed files with 205 additions and 104 deletions
|
@ -119,7 +119,6 @@ import static java.lang.module.ModuleDescriptor.Modifier.SYNTHETIC;
|
|||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public class RMIConnector implements JMXConnector, Serializable, JMXAddressable {
|
||||
|
||||
private static final ClassLogger logger =
|
||||
|
@ -2066,7 +2065,9 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
|
|||
Constructor<?> constr;
|
||||
try {
|
||||
stubClass = Class.forName(rmiConnectionImplStubClassName);
|
||||
constr = (Constructor<?>) AccessController.doPrivileged(action);
|
||||
@SuppressWarnings("removal")
|
||||
Constructor<?> tmp = (Constructor<?>) AccessController.doPrivileged(action);
|
||||
constr = tmp;
|
||||
} catch (Exception e) {
|
||||
logger.error("<clinit>",
|
||||
"Failed to initialize proxy reference constructor "+
|
||||
|
@ -2210,6 +2211,7 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
|
|||
//--------------------------------------------------------------------
|
||||
// Private stuff - Find / Set default class loader
|
||||
//--------------------------------------------------------------------
|
||||
@SuppressWarnings("removal")
|
||||
private ClassLoader pushDefaultClassLoader() {
|
||||
final Thread t = Thread.currentThread();
|
||||
final ClassLoader old = t.getContextClassLoader();
|
||||
|
@ -2223,6 +2225,7 @@ public class RMIConnector implements JMXConnector, Serializable, JMXAddressable
|
|||
return old;
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
private void popDefaultClassLoader(final ClassLoader old) {
|
||||
AccessController.doPrivileged(new PrivilegedAction<Void>() {
|
||||
public Void run() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue