Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 20812 invoked from network); 25 Jun 2009 20:38:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 20:38:18 -0000 Received: (qmail 60499 invoked by uid 500); 25 Jun 2009 20:38:29 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 60475 invoked by uid 500); 25 Jun 2009 20:38:29 -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 60466 invoked by uid 99); 25 Jun 2009 20:38:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 20:38:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 20:38:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6D10829A0011 for ; Thu, 25 Jun 2009 13:38:07 -0700 (PDT) Message-ID: <2107079776.1245962287445.JavaMail.jira@brutus> Date: Thu, 25 Jun 2009 13:38:07 -0700 (PDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-4650) BigInteger(int signum, int digits[]) constructor bug In-Reply-To: <20717633.1187566650529.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hindess closed HARMONY-4650. --------------------------------- Closing as this is fixed in the current code. > BigInteger(int signum, int digits[]) constructor bug > ---------------------------------------------------- > > Key: HARMONY-4650 > URL: https://issues.apache.org/jira/browse/HARMONY-4650 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Imran Ghory > Assignee: Paulex Yang > Priority: Minor > > The following constructor appears to contain a bug, it looks like "digits = new int[] { 0 };" is supposed to be "this.digits = new int[] { 0 };". I haven't quite figured out how to cause this bug to be visible via the public API yet, but I wouldn't be surprised if it was. > BigInteger(int signum, int digits[]) { > if (digits.length == 0) { > sign = 0; > numberLength = 1; > digits = new int[] { 0 }; > } else { > sign = signum; > numberLength = digits.length; > this.digits = digits; > cutOffLeadingZeroes(); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.