Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 88376 invoked from network); 14 Sep 2010 16:06:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Sep 2010 16:06:54 -0000 Received: (qmail 40499 invoked by uid 500); 14 Sep 2010 16:06:54 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 40207 invoked by uid 500); 14 Sep 2010 16:06:52 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 40198 invoked by uid 99); 14 Sep 2010 16:06:51 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 16:06:51 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of t.p.ellison@gmail.com designates 209.85.215.49 as permitted sender) Received: from [209.85.215.49] (HELO mail-ew0-f49.google.com) (209.85.215.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 16:06:27 +0000 Received: by ewy9 with SMTP id 9so3692328ewy.36 for ; Tue, 14 Sep 2010 09:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=IjXiWCeTErVL3DAtgKtQlUlBToEGli7cYGZcUhfsmcc=; b=jz2Lh4OjyXEUGZgTUcTWaSLS4XqgVxASJcI2KRy4FbtYFpvDmHx+SRMqH3/fAU/OYq AmBSJdIRr04qr5WjPe300r/Y3TaXH0PwxFxFJGRaVxFG0lfJcei9OoZNGhsskuHDWLNr pNYXbqTWfCJjLr1JAJrl4yAW70aQN9j0ezdYE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=GxOhyPObGT2w4Kg7b2SyM5oFH25J3PrBBT4QvVocSuJP5pVl7+QL38wpXcwIhfQiwe O9roHP8COoWuV4/nRkqZHUn7ZYCRxaJLbi6ty8kvN7hYTXgN8IYEMpoVLQkGxlhXkG6T sUJfMAqxmYX6iq5uUv1oBCimePsyqqMC5mfjA= Received: by 10.14.19.133 with SMTP id n5mr55229een.37.1284480366905; Tue, 14 Sep 2010 09:06:06 -0700 (PDT) Received: from [9.20.183.174] (gbibp9ph1--blueice3n1.emea.ibm.com [195.212.29.83]) by mx.google.com with ESMTPS id v8sm450188eeh.20.2010.09.14.09.06.05 (version=SSLv3 cipher=RC4-MD5); Tue, 14 Sep 2010 09:06:06 -0700 (PDT) Message-ID: <4C8F9D6B.5000808@gmail.com> Date: Tue, 14 Sep 2010 17:06:03 +0100 From: Tim Ellison User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: questions about Non-bug differences from RI category References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 14/Sep/2010 16:39, Robert Muir wrote: > To what extent is the project interested in non-bug differences from RI? All are interesting, either as differences we will fix, or as documentation of decisions not to fix. > For example, in Lucene we have a test that invokes Character.codePointAt() > and expects an exception. > the javadocs state that it will throw IOOBE (which harmony does), > but the test was written (incorrectly) to expect StringIndexOOBE, > ArrayIndexOOBE (which sun does) A quick look at the harmony code, and it seems we are explicitly throwing IIOBE's from our code, e.g. if (index < 0 || index >= len) { throw new IndexOutOfBoundsException(); } In this case I see no reason why we wouldn't match the RI behavior, even though it is not required by the spec. > We also see other non-bug differences that match some changes between RI's > versus ICU's internationalization support. > For example, I think the Thai DBBI is different, and there are some > collation differences (i suspect this relates to > HARMONY-5406 > ) Yes, again I think this beyond the spec. As you say, Harmony defers to the ICU project to provide the i18n functionality. If you consider the collation or break iterators to be producing a result that is 'wrong' we'd raise it with ICU and get their opinion. > I can open issues for anything we find from our unit tests that aren't > actually bugs in Harmony, if they are of interest. Yes, please continue to discuss them here. As you can see, I think it requires a debate as to which we would fix; e.g. if people agree that the i18n is not something we want to pursue then having a non-bug difference is useful as a record of that decision. Regards, Tim