Date: Thu, 15 Mar 2007 13:51:19 -0400 From: Sean Bryant <sean@cyberwang.net> To: freebsd-java@freebsd.org Subject: [Fwd: diablo jvm bug with NumberFormat.getCurrencyInstance();] Message-ID: <45F98797.6060704@cyberwang.net>
next in thread | raw e-mail | index | archive | help
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: <victori@salesdepotinc.com> 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 <sean@cyberwang.net>; 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 <sean@cyberwang.net>; 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 <sean@cyberwang.net>; 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 <sean@cyberwang.net>; 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" <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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45F98797.6060704>