Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 39264 invoked from network); 14 Sep 2006 02:58:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2006 02:58:22 -0000 Received: (qmail 94143 invoked by uid 500); 14 Sep 2006 02:58:22 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 94104 invoked by uid 500); 14 Sep 2006 02:58:22 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 94093 invoked by uid 99); 14 Sep 2006 02:58:22 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 19:58:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([209.237.227.198:36864] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 59/F0-02080-5B4C8054 for ; Wed, 13 Sep 2006 19:57:04 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DAF3041002D for ; Thu, 14 Sep 2006 02:52:23 +0000 (GMT) Message-ID: <3649424.1158202343894.JavaMail.jira@brutus> Date: Wed, 13 Sep 2006 19:52:23 -0700 (PDT) From: "Tony Wu (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-1116) [classlib][text] Bidi.getLength() result differs from RI when flag > 61 In-Reply-To: <5370213.1155120073916.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1116?page=comments#action_12434580 ] Tony Wu commented on HARMONY-1116: ---------------------------------- it would be closed according disscussion on http://www.mail-archive.com/harmony-dev@incubator.apache.org/msg11651.html > [classlib][text] Bidi.getLength() result differs from RI when flag > 61 > ----------------------------------------------------------------------- > > Key: HARMONY-1116 > URL: http://issues.apache.org/jira/browse/HARMONY-1116 > Project: Harmony > Issue Type: Bug > Components: Non-bug differences from RI > Reporter: Denis Kishenko > > RI returns 0 for java.text.Bidi.getLength() if object was created via Bidi(String paragraph, int flags) with flag>61 like below: > Bidi bd = new Bidi("Java is the best", 62); > From the specification for Bidi constructor: > flags - a collection of flags that control the algorithm. The algorithm > understands the flags DIRECTION_LEFT_TO_RIGHT, DIRECTION_RIGHT_TO_LEFT, > DIRECTION_DEFAULT_LEFT_TO_RIGHT, and DIRECTION_DEFAULT_RIGHT_TO_LEFT. > Other values are reserved. > ------------------------- Test ---------------------------------- > import java.text.*; > public class bug9383 { > public static void main (String[] args) { > try { > Bidi bd = new Bidi("Java is the best", 62); > System.out.println("len="+bd.getLength()); > } catch (Exception e) { > e.printStackTrace(); > } > } > } > ---------------------------- Output ------------------------------------------- > RI > len=0 > Harmony > len=16 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira