From owner-freebsd-java@FreeBSD.ORG Thu Mar 15 18:19:22 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BCB8116A402 for ; Thu, 15 Mar 2007 18:19:22 +0000 (UTC) (envelope-from sean@cyberwang.net) Received: from sumo.dreamhost.com (sumo.dreamhost.com [66.33.216.29]) by mx1.freebsd.org (Postfix) with ESMTP id 8D83313C46E for ; Thu, 15 Mar 2007 18:19:22 +0000 (UTC) (envelope-from sean@cyberwang.net) Received: from spunkymail-a5.g.dreamhost.com (sd-green-bigip-145.dreamhost.com [208.97.132.145]) by sumo.dreamhost.com (Postfix) with ESMTP id 50B6517F94A for ; Thu, 15 Mar 2007 10:51:23 -0700 (PDT) Received: from [10.0.1.2] (68-184-120-224.dhcp.smyr.ga.charter.com [68.184.120.224]) by spunkymail-a5.g.dreamhost.com (Postfix) with ESMTP id 4465914D6B1 for ; Thu, 15 Mar 2007 10:51:20 -0700 (PDT) Message-ID: <45F98797.6060704@cyberwang.net> Date: Thu, 15 Mar 2007 13:51:19 -0400 From: Sean Bryant User-Agent: Thunderbird 1.5.0.10 (X11/20070313) MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: multipart/mixed; boundary="------------040003080408090903090003" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [Fwd: diablo jvm bug with NumberFormat.getCurrencyInstance();] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 18:19:22 -0000 This is a multi-part message in MIME format. --------------040003080408090903090003 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Victori in ##freebsd on freenode is having trouble sending this message along so I'm here acting as a proxy. --------------040003080408090903090003 Content-Type: message/rfc822; name="diablo jvm bug with NumberFormat.getCurrencyInstance();" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="diablo jvm bug with NumberFormat.getCurrencyInstance();" Return-Path: X-Original-To: sean@cyberwang.net Delivered-To: anonuser@spunkymail-mx7.g.dreamhost.com Received: from absolute.salesdepotinc.com (adsl-67-119-150-206.dsl.lsan03.pacbell.net [67.119.150.206]) by spunkymail-mx7.g.dreamhost.com (Postfix) with ESMTP id 55B66B6C3 for ; Thu, 15 Mar 2007 10:00:08 -0700 (PDT) Received: from localhost (oraclenew.salesdepotinc.com [127.0.0.1]) by absolute.salesdepotinc.com (Postfix) with ESMTP id 3D72E21C886 for ; Thu, 15 Mar 2007 08:59:46 -0800 (PST) X-Virus-Scanned: amavisd-new at salesdepotinc.com X-Spam-Score: -1.929 X-Spam-Level: X-Spam-Status: No, score=-1.929 tagged_above=-999 required=3 tests=[AWL=0.669, BAYES_00=-2.599, HTML_MESSAGE=0.001] Received: from absolute.salesdepotinc.com ([127.0.0.1]) by localhost (absolute.salesdepotinc.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0Ens6JTd2FQP for ; Thu, 15 Mar 2007 08:59:43 -0800 (PST) Received: from [192.168.1.14] (cpe-76-168-243-89.socal.res.rr.com [76.168.243.89]) by absolute.salesdepotinc.com (Postfix) with ESMTP id D7D8121C884 for ; Thu, 15 Mar 2007 08:59:42 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) To: sean@cyberwang.net Message-Id: <169F1C87-D734-4887-A4A1-356A8FAED3CF@salesdepotinc.com> Content-Type: multipart/alternative; boundary=Apple-Mail-2-249815053 From: "victori@salesdepotinc.com" Subject: diablo jvm bug with NumberFormat.getCurrencyInstance(); Date: Thu, 15 Mar 2007 10:00:26 -0700 X-Mailer: Apple Mail (2.752.3) --Apple-Mail-2-249815053 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Cause: String str = "$1.99"; NumberFormat.getCurrencyInstance().parse (str).doubleValue(); With a currency symbol in the String it throws an exception, even with the Locale being set. Where as on sun-jdk it parses that test case correctly to a double value. Getting this fixed might be a priority since Java is heavily used for intranet business applications. -Victor --Apple-Mail-2-249815053 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" String str =3D "$1.99"; = NumberFormat.getCurrencyInstance().parse(str).doubleValue();=A0=A0<= /FONT> With a currency = symbol in the String it throws an exception, even with the Locale being = set. Where as on sun-jdk it parses that test case correctly to a double = value. Getting this fixed = might be a priority since Java is=A0heavily used for intranet business = applications.=A0 -Victor = --Apple-Mail-2-249815053-- --------------040003080408090903090003--