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

java.text.BreakIterator.getXXXInstance(Locale) ignore input parameter.

    XMLWordPrintable

Details

    • sparc
    • solaris_2.5

    Description



      Name: dfC67450 Date: 04/08/98



      getWordInstance, getLineInstance, getCharacterInstance, getSentenceInstance
      of java.text.BreakIterator ignore localization.

      --- Javadoc says about getWordInstance(Locale where): ---
        Create BreakIterator for word-breaks using specified locale.
        Returns an instance of a BreakIterator implementing word breaks.
        WordBreak is usefull for word selection (ex. double click)

        param where the local. If a specific WordBreak is not
        avaliable for the specified locale, a default WordBreak is returned.
        
        return A BreakIterator for word-breaks

      --- here is the source ---

          public static BreakIterator getWordInstance()
          {
              return getWordInstance(Locale.getDefault());
          }

          public static BreakIterator getWordInstance(Locale where)
          {
              return new SimpleTextBoundary(new WordBreakData());
          }
      ------------


      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              rgillamsunw Richard Gillam (Inactive)
              dfazunensunw Dmitri Fazunenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: