mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-03 12:40:10 +00:00
8081390: javax/management/remote/mandatory/connection/RMIConnector_NPETest.java may leave orphaned processes
Reviewed-by: rriggs
This commit is contained in:
parent
1dad4ab65f
commit
ae8cf28353
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2010, 2016, 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
|
||||
@ -43,12 +43,12 @@ import javax.management.remote.rmi.*;
|
||||
public class RMIConnector_NPETest {
|
||||
public static void main(String argv[]) throws Exception {
|
||||
RMID rmid = RMID.createRMID();
|
||||
rmid.start();
|
||||
int rmidPort = rmid.getPort();
|
||||
Exception failureCause = null;
|
||||
RMIConnector agent = null;
|
||||
|
||||
try {
|
||||
rmid.start();
|
||||
int rmidPort = rmid.getPort();
|
||||
MBeanServer mbs = MBeanServerFactory.createMBeanServer();
|
||||
RMIJRMPServerImpl rmiserver = new RMIJRMPServerImpl(rmidPort, null, null, null);
|
||||
rmiserver.setMBeanServer(mbs);
|
||||
@ -75,3 +75,4 @@ public class RMIConnector_NPETest {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user