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

(fmt) Formattable.formatTo() should use int versus Integer

XMLWordPrintable

    • b49
    • x86
    • windows_xp



      Name: rmT116609 Date: 02/10/2004


      FULL PRODUCT VERSION :
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      In method formatTo, parameters width and precision are declared
      as Integer but most of classes that implement interface Fomattable
      use this parameter as an int using unboxing conversion.

      I think a better place the unboxing conversion occur
      should be in the caller method (the method that calls formatTo()).
      (Incident Review ID: 237504)
      ======================================================================

            iris Iris Clark
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: