Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6540440

Logger.log(Level,String,Object[]) should be Logger.log(Level,String,Object...)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 6
    • core-libs

      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.

            Unassigned Unassigned
            ryeung Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: