Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 84073 invoked from network); 14 Mar 2007 06:33:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 06:33:22 -0000 Received: (qmail 19889 invoked by uid 500); 14 Mar 2007 06:33:30 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 19867 invoked by uid 500); 14 Mar 2007 06:33:30 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 19855 invoked by uid 99); 14 Mar 2007 06:33:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 23:33:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 23:32:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C7885714077 for ; Tue, 13 Mar 2007 23:32:09 -0700 (PDT) Message-ID: <29391290.1173853929814.JavaMail.jira@brutus> Date: Tue, 13 Mar 2007 23:32:09 -0700 (PDT) From: "Mikhail Loenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-217) [classlib][text] java.text.BreakIterator.following() incorrectly calculates the following boundary MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Loenko updated HARMONY-217: ----------------------------------- Summary: [classlib][text] java.text.BreakIterator.following() incorrectly calculates the following boundary (was: java.text.BreakIterator.following() incorrectly calculates the following boundary) > [classlib][text] java.text.BreakIterator.following() incorrectly calculates the following boundary > -------------------------------------------------------------------------------------------------- > > Key: HARMONY-217 > URL: https://issues.apache.org/jira/browse/HARMONY-217 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: J9 + Hamony > Reporter: Anton Avtamonov > > Use the following test case (which pass on RI) to understand the issue: > import java.text.BreakIterator; > import junit.framework.TestCase; > public class BreakIteratorTest extends TestCase { > private BreakIterator bi; > protected void setUp() throws Exception { > bi = BreakIterator.getWordInstance(); > } > protected void tearDown() throws Exception { > bi = null; > } > public void testFollowing() throws Exception { > bi.setText("000 111"); > checkWordBounds(2, 0, 3); > checkWordBounds(4, 3, 6); > checkWordBounds(7, 6, 9); > } > private void checkWordBounds(final int offset, > final int expectedBeginOffset, > final int expectedEndOffset) { > assertEquals(expectedBeginOffset, bi.preceding(offset)); > assertEquals(expectedEndOffset, bi.following(offset)); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.