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

Doc: JCK: AttributedString spec should better describe null args

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.4.0, 5.0
    • core-libs
    • None
    • beta
    • generic, sparc
    • generic, solaris_2.5
    • Verified

      Name: id146280 Date: 09/10/2004


      Specification does not describe behavior if some arguments of some methods of
      java.text.AttributedString are null, see detailed list below.

      1.
      Specification does not describe behaviour of the following constructors in
      case of argument text being null

      AttributedString(String text)
      AttributedString(AttributedCharacterIterator text)
      AttributedString(AttributedCharacterIterator text, int beginIndex, int endIndex)
      AttributedString(AttributedCharacterIterator text, int beginIndex, int endIndex, AttributedCharacterIterator.Attribute[] attributes)

      2.
      Specification does not describe behaviour of the following constructor in
      case of argument text being null and in case of argument attributes being
      null.

      AttributedString(String text, Map attributes)

      3.
      Specification does not describe behaviour of the following methods in case of
      argument attribute being null.

      void addAttribute(AttributedCharacterIterator.Attribute attribute, Object value)
      void addAttribute(AttributedCharacterIterator.Attribute attribute, Object value, int beginIndex, int endIndex)

      4.
      Specification does not describe behaviour of the following method in case of
      argument attributes being null.

      void addAttributes(Map attributes, int beginIndex, int endIndex)

      ======================================================================
      ###@###.### 10/27/04 02:21 GMT

            nlindenbsunw Norbert Lindenberg (Inactive)
            idergali Ilya Dergalin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: