-
Enhancement
-
Resolution: Duplicate
-
P5
-
None
-
6
-
x86
-
windows_xp
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.
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.
- duplicates
-
JDK-5001993 Use varargs in java.util.logging.Logger
-
- Open
-