--- a/src/jdk.management.agent/share/conf/management.properties Fri Jan 19 13:46:27 2018 +0530
+++ b/src/jdk.management.agent/share/conf/management.properties Fri Jan 19 13:56:36 2018 +0530
@@ -32,7 +32,7 @@
# ################ Rest adapter Port #########################
#
# For starting the rest adapter, set the port use the following line
-# com.sun.management.jmxremote.port=<port-number>
+# com.sun.management.jmxremote.rest.port=<port-number>
#####################################################################
# Optional Instrumentation
--- a/src/jdk.management.rest/share/classes/jdk/internal/management/remote/rest/http/MBeanCollectionResource.java Fri Jan 19 13:46:27 2018 +0530
+++ b/src/jdk.management.rest/share/classes/jdk/internal/management/remote/rest/http/MBeanCollectionResource.java Fri Jan 19 13:56:36 2018 +0530
@@ -241,9 +241,9 @@
String href = path + "/" + objectName.toString();
href = HttpUtil.escapeUrl(href);
item.put("href", href);
+ String info = HttpUtil.escapeUrl(path + "/" + objectName.toString() + "/info");
+ item.put("info", info);
items.add(item);
- String info = HttpUtil.escapeUrl(href + "/info");
- item.put("info", info);
}
Map<String, String> properties = new HashMap<>();