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

[BI] Doc: java.text.BreakIterator class specification is unclear

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 6
    • core-libs
    • b14
    • generic
    • generic

    Description

      Specification of java.text.BreakIterator class doesn't describe most methods behaviour before method setText(String) or setText(CharacterIterator) is called.

      example:
      int value = BreakIterator.getWordInstance().next();

      What is result of such call? (exception, 0 or something else)

      You may do either:
      - specify on the class level, that all static methods returning BreakIterator creates an instance initialized by empty string
      or
      - in every abstract method specify its reaction on "text isn't set" situation
      or something else.

      Attachments

        Issue Links

          Activity

            People

              jlu Justin Lu
              itseytin Igor Tseytin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: