changeset 2126:31a3f28f3326

6908299: Missed changes for 6664512 during the merge with 6879044 Reviewed-by: mchung, art
author dcherepanov
date Wed, 23 Dec 2009 01:22:11 +0300
parents 1143e498f813
children 7b65af04d43c
files src/share/classes/sun/util/logging/PlatformLogger.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/util/logging/PlatformLogger.java	Wed Dec 16 23:39:21 2009 -0800
+++ b/src/share/classes/sun/util/logging/PlatformLogger.java	Wed Dec 23 01:22:11 2009 +0300
@@ -535,6 +535,10 @@
         }
 
         void doLog(int level, String msg, Object... params) {
+            int paramsNumber = (params != null) ? params.length : 0;
+            for (int i = 0; i < paramsNumber; i++) {
+                params[i] = String.valueOf(params[i]);
+            }
             LoggingSupport.log(javaLogger, levelObjects.get(level), msg, params);
         }