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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: