6908299: Missed changes for 6664512 during the merge with 6879044
authordcherepanov
Wed, 23 Dec 2009 01:22:11 +0300
changeset 4828 86a569e6b967
parent 4423 4061c66ba1af
child 4829 21778cfb4353
6908299: Missed changes for 6664512 during the merge with 6879044 Reviewed-by: mchung, art
jdk/src/share/classes/sun/util/logging/PlatformLogger.java
--- 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);
         }