From owner-freebsd-java@FreeBSD.ORG Fri Mar 16 19:31:07 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 3E7E716A401 for ; Fri, 16 Mar 2007 19:31:07 +0000 (UTC) (envelope-from parv@pair.com) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.freebsd.org (Postfix) with ESMTP id EE46613C44C for ; Fri, 16 Mar 2007 19:31:06 +0000 (UTC) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([24.126.17.68]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20070316191912.QJOB2272.mta10.adelphia.net@default.chvlva.adelphia.net>; Fri, 16 Mar 2007 19:19:12 +0000 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id BC863B7E9; Fri, 16 Mar 2007 15:19:07 -0400 (EDT) Date: Fri, 16 Mar 2007 15:19:07 -0400 From: Parv To: "victori@salesdepotinc.com" Message-ID: <20070316191907.GA3472@holestein.holy.cow> Mail-Followup-To: "victori@salesdepotinc.com" , freebsd-java@freebsd.org References: <635C86FC-5150-4528-972E-A5E99418D0A9@salesdepotinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <635C86FC-5150-4528-972E-A5E99418D0A9@salesdepotinc.com> Cc: freebsd-java@freebsd.org Subject: Re: diablo jvm issue, at the byte code level 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: Fri, 16 Mar 2007 19:31:07 -0000 in message <635C86FC-5150-4528-972E-A5E99418D0A9@salesdepotinc.com>, wrote victori@salesdepotinc.com thusly... > > Anonuser has posted on my behalf, seems like this issue with > NumberFormat is at the bytecode level > > Here is an example testcase: > > import java.text.*; > > public class Test { > public static void main(String[] args) { > try { > System.out.println(NumberFormat.getCurrencyInstance().parse > ("$1.99").doubleValue()); > } catch (Exception e) { > e.printStackTrace(); > } > } > } > > Save as Test.java ; compile under the SUN JVM: javac Test.java > > > Run the class under the Diablo jvm and you will receive > > -bash-2.05b$ java Test > java.text.ParseException: Unparseable number: "$1.99" > at java.text.NumberFormat.parse(NumberFormat.java:309) > at Test.main(Test.java:6) > > And when I run it with the SUN JDK > > absolute# /usr/local/linux-sun-jdk1.5.0/bin/java Test > 1.99 > > > Works correctly. No problem here with the a class being called 'Test' & diablo-jdk-freebsd6.i386.1.5.0.07.00 (compiled before the currently running FreeBSD 6-STABLE as of around Feb 23 2007). Locale output is ... LANG= LC_CTYPE="en_US.ISO8859-15" LC_COLLATE="en_US.ISO8859-15" LC_TIME="en_US.ISO8859-15" LC_NUMERIC="en_US.ISO8859-15" LC_MONETARY="en_US.ISO8859-15" LC_MESSAGES="en_US.ISO8859-15" LC_ALL=en_US.ISO8859-15 - Parv --