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

[AS] AttributedString constructor API doc error

XMLWordPrintable

    • b03
    • x86
    • linux
    • Not verified

        FULL PRODUCT VERSION :
        1.6.0 online API docs

        ADDITIONAL OS VERSION INFORMATION :
        OS independent (API docs)

        A DESCRIPTION OF THE PROBLEM :
        The API docs for the AttributedString(AttributedCharacterIterator, int, int, Attribute[]) constructor state that a NullPointerException is thrown if 'text' or 'attributes' is null. In fact, null is a valid argument for 'attributes' as noted within the same API doc comments.


        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Here's the link:

        http://download.java.net/jdk6/docs/api/java/text/AttributedString.html#AttributedString(java.text.AttributedCharacterIterator,%20int,%20int,%20java.text.AttributedCharacterIterator.Attribute[])


        REPRODUCIBILITY :
        This bug can be reproduced always.

              peytoia Yuka Kamiya (Inactive)
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: