From 443e1067b4918ce2868476834c30152e5e8de93c Mon Sep 17 00:00:00 2001 From: Andrew Austin Date: Thu, 8 Jan 2015 21:24:56 -0700 Subject: [PATCH] Altered JSON invocation of JMX methods to support the following change implemented in Jolokia Release 0.91 (http://www.jolokia.org/changes-report.html): Fixed issue with overloaded methods where one variant takes no arguments. This no-arg variant can be specified with the signature "()" after the operation name. --- .../app/js/controller/jmxCtrl.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/spring-boot-admin-server-ui/app/js/controller/jmxCtrl.js b/spring-boot-admin-server-ui/app/js/controller/jmxCtrl.js index 2159df0ff71..fb346eee58f 100644 --- a/spring-boot-admin-server-ui/app/js/controller/jmxCtrl.js +++ b/spring-boot-admin-server-ui/app/js/controller/jmxCtrl.js @@ -102,20 +102,20 @@ module.exports = function ($scope, $modal, $log, application, ApplicationJMX) { $scope.invocation = null; }); } else { + var signature = '('; + for (var i in op.args) { + if (i > 0) { + signature += ','; + } + signature += op.args[i].type; + $scope.invocation.args[i] = null; + } + signature += ')'; + $scope.invocation.opname = name + signature; + if (op.args.length === 0) { $scope.invoke(); } else { - var signature = '('; - for (var i in op.args) { - if (i > 0) { - signature += ','; - } - signature += op.args[i].type; - $scope.invocation.args[i] = null; - } - signature += ')'; - $scope.invocation.opname = name + signature; - $modal.open({ templateUrl: 'invocationPrepareDialog.html', scope: $scope