RFR: 6661: Simplify Agent JMX tests

Marcus Hirt hirt at openjdk.java.net
Sat Jan 18 16:36:07 UTC 2020


On Fri, 17 Jan 2020 20:46:09 GMT, Jessye Coleman-Shapiro <github.com+29706926+jessyec-s at openjdk.org> wrote:

> 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.



-------------

Marked as reviewed by hirt (Lead).

PR: https://git.openjdk.java.net/jmc/pull/37


More information about the jmc-dev mailing list