Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 66478 invoked from network); 28 Apr 2009 16:27:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Apr 2009 16:27:54 -0000 Received: (qmail 5093 invoked by uid 500); 28 Apr 2009 16:27:54 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 5059 invoked by uid 500); 28 Apr 2009 16:27:53 -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 5050 invoked by uid 99); 28 Apr 2009 16:27:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 16:27:53 +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; Tue, 28 Apr 2009 16:27:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8286B234C003 for ; Tue, 28 Apr 2009 09:27:30 -0700 (PDT) Message-ID: <1733464975.1240936050526.JavaMail.jira@brutus> Date: Tue, 28 Apr 2009 09:27:30 -0700 (PDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-879) [classlib][text] DecimalFormat.setMultiplier(-1) throws IllegalArgumentException while RI set negative value 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-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703703#action_12703703 ] Tim Ellison commented on HARMONY-879: ------------------------------------- Yeah, works for me too. Go ahead and close it - thanks. > [classlib][text] DecimalFormat.setMultiplier(-1) throws IllegalArgumentException while RI set negative value > ------------------------------------------------------------------------------------------------------------ > > Key: HARMONY-879 > URL: https://issues.apache.org/jira/browse/HARMONY-879 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Vladimir Ivanov > Assignee: Nathan Beyer > Fix For: 5.0M10 > > Attachments: DecimalFormatTest.patch > > > The Harmony method DecimalFormat.setMultiplier(-1) throws IllegalArgumentException while RI set negative value. > ================= test.java ================== > import java.text.*; > public class test { > public static void main (String[] args) { > try { > DecimalFormat df = new DecimalFormat("1.23"); > df.setMultiplier(-1); > System.out.println("getMultiplier = " + df.getMultiplier()); > } catch (Exception e) { > e.printStackTrace(); > } > } > } > =========================================== > output > C:\tmp\tmp17>C:\jrockit-jdk1.5.0-windows-ia32\bin\java.exe -cp . -showversion test > java version "1.5.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) > BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC: System optimized over throughput (initial strategy singleparpar)) > getMultiplier = -1 > C:\tmp\tmp17>C:\harmony\trunk_0427\deploy\jdk\jre\bin\java.exe -cp . -showversion test > java version 1.5 (subset) > (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > java.lang.IllegalArgumentException: Bad multiplier: -1 > at com.ibm.icu.text.DecimalFormat.setMultiplier(DecimalFormat.java:2248) > at java.text.DecimalFormat.setMultiplier(DecimalFormat.java:581) > at test.main(test.java:7) > C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_debug\deploy\jre\bin\ij -cp . -showversion test > Apache Harmony DRLVM HEAD-4807 (2006-05-02), Windows/ia32/msvc 1310, debug > java.lang.IllegalArgumentException: Bad multiplier: -1 > at com.ibm.icu.text.DecimalFormat.setMultiplier(DecimalFormat.java:2248) > at java.text.DecimalFormat.setMultiplier(DecimalFormat.java:581) > at test.main(test.java:7) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.