changeset 2686:448387146bb8

6980510: Fix for 6959252 broke JConsole mnemonic keys Reviewed-by: mfang, yhuang
author yhuang
date Thu, 09 Sep 2010 23:01:43 -0700
parents 043d2736d44c
children 9a1549d682ce
files src/share/classes/sun/tools/jconsole/resources/JConsoleResources.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/tools/jconsole/resources/JConsoleResources.java	Sun Aug 29 22:41:28 2010 -0700
+++ b/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;