RFR: 6890: defineEventProbes should throw exception on malformed probe definitions

Marcus Hirt hirt at openjdk.java.net
Fri Mar 12 12:05:04 UTC 2021


On Thu, 11 Mar 2021 21:06:50 GMT, Joshua Matsuoka <jmatsuoka at openjdk.org> wrote:

> This PR addresses JMC-6890 (defineEventProbes should throw exception on malformed probe definitions) [1]. Previously the exception would be swallowed by DefaultTransformRegistry when the XML failed validation, and would simply return null. With this change the exception is rethrown and can be handled accordingly by the AgentController, which rethrows it, and the user. I've added a test for the AgentController and updated the test for DefaultTransformRegistry accordingly.
> 
> [1] https://bugs.openjdk.java.net/browse/JMC-6890

Don't forget to update the copyright years.

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

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


More information about the jmc-dev mailing list