Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 82733 invoked from network); 25 Aug 2006 13:04:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2006 13:04:55 -0000 Received: (qmail 61663 invoked by uid 500); 25 Aug 2006 13:04:50 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 61631 invoked by uid 500); 25 Aug 2006 13:04:50 -0000 Mailing-List: contact harmony-dev-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-dev@incubator.apache.org Received: (qmail 61618 invoked by uid 99); 25 Aug 2006 13:04:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 06:04:50 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ilya.okomin@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 06:04:49 -0700 Received: by ug-out-1314.google.com with SMTP id u40so881775ugc for ; Fri, 25 Aug 2006 06:04:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=AD0KP28MLU/yUVj7Yg4uTkvu+OXXhCFc7U8y+OSf/eiY7bD6lB4sJAXH84OpqQVqOdRV8hq+OSxDk54ptqEsBc5SZxUFrokyTg5tbbJX4oI6t9rkwXk5zZb04aTyC+7nU5EA8hZ7uHrJtaoXhqovtQ78TsOyEw/zENSemZP2L3k= Received: by 10.66.220.17 with SMTP id s17mr1827145ugg; Fri, 25 Aug 2006 06:04:28 -0700 (PDT) Received: by 10.66.250.7 with HTTP; Fri, 25 Aug 2006 06:04:28 -0700 (PDT) Message-ID: Date: Fri, 25 Aug 2006 17:04:28 +0400 From: "Ilya Okomin" To: harmony-dev@incubator.apache.org Subject: Re: [jira] Created: (HARMONY-1116) [classlib][text] Bidi.getLength() result differs from RI when flag > 61 In-Reply-To: <834b3bd50608090442y2abeccc0u87223c019c54392c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_178671_4730002.1156511068141" References: <21973034.1155120073825.JavaMail.jira@brutus> <834b3bd50608090442y2abeccc0u87223c019c54392c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_178671_4730002.1156511068141 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/9/06, Denis Kishenko wrote: > > Behavior of Harmony Bidi implementation differs from RI when Bidi is > created with flag parameter more then 61 According spec flag should be > a combination of predefined constants and 62 is invalid value. > > I filed this issue as non-bug difference. Does anybody have objection? Hello, Denis! I've took a look into this bug and also have an opinion that this is a non-bug difference. As it's written in the spec flags argument could be one of the predefined values. Verification of other non-predefined values is undescribed in the spec. I think in this case we should be compatible for predefined values and we shouldn't care if Harmony implementation has another behavior than RI for non-specified flags values. Regards, Ilya. 2006/8/9, Denis Kishenko (JIRA) : > > [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 > > > > > > > > > -- > Denis M. Kishenko > Intel Middleware Products Division > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > For additional commands, e-mail: harmony-dev-help@incubator.apache.org > > -- -- Ilya Okomin Intel Middleware Products Division ------=_Part_178671_4730002.1156511068141--