RFR: 6661: Simplify Agent JMX tests
github.com+29706926+jessyec-s at openjdk.java.net
Fri Jan 17 20:48:21 UTC 2020
This patch simplifies mbean function calls for agent JMX tests.
The proposed solution, which is outlined in the ticket's description, was to create an mbean object by calling ManagementFactory.newPlatformMXBeanProxy(...). However this function requires the AgentControllerMBean class to be loaded by the platform class loader, which it is not. So instead I have called the JMX.newMXBeanProxy(...) directly.
- 646146d7: Simplify Agent JMX tests
Stats: 8 lines in 1 file changed: 1 ins; 3 del; 4 mod
Fetch: git fetch https://git.openjdk.java.net/jmc pull/37/head:pull/37
More information about the jmc-dev