JDK-6540440 : Logger.log(Level,String,Object[]) should be Logger.log(Level,String,Object...)
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util.logging
  • Affected Version: 6
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-03-29
  • Updated: 2010-04-04
  • Resolved: 2007-06-05
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)


A DESCRIPTION OF THE PROBLEM :
Logger methods should use Java's variable-arguments feature.

For example, method log(Level, String, Object[]) should have the signature log(Level, String, Object...).

JUSTIFICATION:
Sun added a variable-arguments feature to make things more convenient
for the programmer.  This method could make use of that feature (and
is exactly the kind of things the variable-arguments feature is meant
for).  The programmer should be able to use the variable-arguments 
feature for this method too.  Therefore, this method should be 
re-declared to support the variable-arguments feature.

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION I'm closing this as a dup of: 5001993 Use varargs in java.util.logging.Logger
2007-06-05