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

CompactNumberFormat:: format​() method spec for IAEx is not complaint

    XMLWordPrintable

Details

    • b12
    • Verified

    Description

      public final StringBuffer format​(Object number, StringBuffer toAppendTo, FieldPosition fieldPosition)

      As per spec :
      Throws:
      IllegalArgumentException - if number is null or not an instance of Number
      When i supply number as null
      I expect - IAE
      actual is - NullpointerException

      Attachments

        Activity

          People

            nishjain Nishit Jain
            kganapureddy Krushnareddy Ganapureddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: