6980510: Fix for 6959252 broke JConsole mnemonic keys
authoryhuang
Thu, 09 Sep 2010 23:01:43 -0700
changeset 6375 f8eac76fb676
parent 6325 adf468d05745
child 6376 7830e70899e8
6980510: Fix for 6959252 broke JConsole mnemonic keys Reviewed-by: mfang, yhuang
jdk/src/share/classes/sun/tools/jconsole/resources/JConsoleResources.java
--- a/jdk/src/share/classes/sun/tools/jconsole/resources/JConsoleResources.java	Sun Aug 29 22:41:28 2010 -0700
+++ b/jdk/src/share/classes/sun/tools/jconsole/resources/JConsoleResources.java	Thu Sep 09 23:01:43 2010 -0700
@@ -447,7 +447,9 @@
 
         String ls = System.getProperty("line.separator");
         for(int i=0;i<temp.length;i++) {
+            if (temp[i][1] instanceof String){
             temp[i][1] = temp[i][1].toString().replaceAll("\n",ls);
+            }
         }
 
         return temp;