Skip to content

Commit 443e106

Browse files
Andrew AustinJohannes Stelzer
authored andcommitted
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.
1 parent 6d76fa3 commit 443e106

File tree

1 file changed

+11
-11
lines changed
  • spring-boot-admin-server-ui/app/js/controller

1 file changed

+11
-11
lines changed

spring-boot-admin-server-ui/app/js/controller/jmxCtrl.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,20 @@ module.exports = function ($scope, $modal, $log, application, ApplicationJMX) {
102102
$scope.invocation = null;
103103
});
104104
} else {
105+
var signature = '(';
106+
for (var i in op.args) {
107+
if (i > 0) {
108+
signature += ',';
109+
}
110+
signature += op.args[i].type;
111+
$scope.invocation.args[i] = null;
112+
}
113+
signature += ')';
114+
$scope.invocation.opname = name + signature;
115+
105116
if (op.args.length === 0) {
106117
$scope.invoke();
107118
} else {
108-
var signature = '(';
109-
for (var i in op.args) {
110-
if (i > 0) {
111-
signature += ',';
112-
}
113-
signature += op.args[i].type;
114-
$scope.invocation.args[i] = null;
115-
}
116-
signature += ')';
117-
$scope.invocation.opname = name + signature;
118-
119119
$modal.open({
120120
templateUrl: 'invocationPrepareDialog.html',
121121
scope: $scope

0 commit comments

Comments
 (0)