Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 50280 invoked from network); 15 Aug 2006 09:15:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Aug 2006 09:15:10 -0000 Received: (qmail 45277 invoked by uid 500); 15 Aug 2006 09:15:09 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 45231 invoked by uid 500); 15 Aug 2006 09:15:09 -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 45217 invoked by uid 99); 15 Aug 2006 09:15:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2006 02:15:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2006 02:15:08 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 01AC3410020 for ; Tue, 15 Aug 2006 09:12:15 +0000 (GMT) Message-ID: <23548724.1155633135004.JavaMail.jira@brutus> Date: Tue, 15 Aug 2006 02:12:15 -0700 (PDT) From: "Oleg Khaschansky (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-650) [classlib][text]unexpected NPE for object constructed by java.text.Bidi(AttributedCharacterIterator) In-Reply-To: <10486464.1151068111300.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-650?page=all ] Oleg Khaschansky updated HARMONY-650: ------------------------------------- Attachment: harmony-650a.patch Well, agree. Please, disregard previous patch and use updated harmony-650a.patch which contains both fix for the NPE and for the ArrayIndexOutOfBundsException issue. > [classlib][text]unexpected NPE for object constructed by java.text.Bidi(AttributedCharacterIterator) > ---------------------------------------------------------------------------------------------------- > > Key: HARMONY-650 > URL: http://issues.apache.org/jira/browse/HARMONY-650 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Vladimir Ivanov > Attachments: BidiTest.patch, harmony-650.patch, harmony-650a.patch > > > The methods of object constructed by java.text.Bidi(AttributedCharacterIterator) throws unexpected NPE on harmony classes while RI return correct value. For example, getRunLimit(1): > ===================== test.java ==================== > import java.text.*; > public class test { > public static void main (String[] args) { > AttributedString paragraph = new AttributedString("text"); > Bidi bidi = new Bidi(paragraph.getIterator()); > try { > System.out.println("getRunLimit(1) = " + bidi.getRunLimit(1) + "\npassed!"); > } catch (Exception e) { > e.printStackTrace(); > System.out.println("failed"); > } > } > } > ================================================ > Output: > C:\tmp\tmp17>C:\jrockit-j2sdk1.4.2_04\bin\java.exe -showversion test > java version "1.4.2_04" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) > BEA WebLogic JRockit(TM) 1.4.2_04 JVM (build ari-31788-20040616-1132-win-ia32, > Native Threads, GC strategy: parallel) > getRunLimit(1) = 4 > passed! > C:\tmp\tmp17>C:\harmony\trunk_0427\deploy\jdk\jre\bin\java.exe -showversion test > java version 1.5 (subset) > (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as app > licable. > java.lang.NullPointerException > at java.text.Bidi.getRunLimit(Bidi.java:349) > at test.main(test.java:8) > failed > C:\tmp\tmp17> -- 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