United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6540440 : Logger.log(Level,String,Object[]) should be Logger.log(Level,String,Object...)

Details
Type:
Enhancement
Submit Date:
2007-03-29
Status:
Closed
Updated Date:
2010-04-04
Project Name:
JDK
Resolved Date:
2007-06-05
Component:
core-libs
OS:
windows_xp
Sub-Component:
java.util.logging
CPU:
x86
Priority:
P5
Resolution:
Duplicate
Affected Versions:
6
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

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



Hardware and Software, Engineered to Work Together