felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject svn commit: r1854912 - /felix/trunk/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsageSupport.java
Date Wed, 06 Mar 2019 12:14:05 GMT
Author: pauls
Date: Wed Mar  6 12:14:05 2019
New Revision: 1854912

URL: http://svn.apache.org/viewvc?rev=1854912&view=rev
Log:
FELIX-6079: Web Console memory usage page does not display information on Java 11

Modified:
    felix/trunk/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsageSupport.java

Modified: felix/trunk/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsageSupport.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsageSupport.java?rev=1854912&r1=1854911&r2=1854912&view=diff
==============================================================================
--- felix/trunk/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsageSupport.java
(original)
+++ felix/trunk/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsageSupport.java
Wed Mar  6 12:14:05 2019
@@ -363,7 +363,7 @@ final class MemoryUsageSupport implement
         {
             buf.append("{");
 
-            buf.append("'name':'").append(pool.getName()).append('\'');
+            buf.append("'name':'").append(pool.getName().replace("'", "\\'")).append('\'');
             buf.append(",'type':'").append(pool.getType()).append('\'');
 
             MemoryUsage usage = pool.getUsage();



Mime
View raw message