changeset 4828:86a569e6b967

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 4061c66ba1af
children 21778cfb4353
files jdk/src/share/classes/sun/util/logging/PlatformLogger.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/sun/util/logging/PlatformLogger.java	Wed Jul 05 17:04:28 2017 +0200
+++ b/jdk/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);
         }