From owner-freebsd-java@FreeBSD.ORG Thu Mar 15 22:25:01 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 D5F3B16A404 for ; Thu, 15 Mar 2007 22:25:01 +0000 (UTC) (envelope-from victori@salesdepotinc.com) Received: from absolute.salesdepotinc.com (adsl-67-119-150-206.dsl.lsan03.pacbell.net [67.119.150.206]) by mx1.freebsd.org (Postfix) with ESMTP id B02AA13C448 for ; Thu, 15 Mar 2007 22:25:01 +0000 (UTC) (envelope-from victori@salesdepotinc.com) Received: from localhost (oraclenew.salesdepotinc.com [127.0.0.1]) by absolute.salesdepotinc.com (Postfix) with ESMTP id C127221C886 for ; Thu, 15 Mar 2007 13:25:02 -0800 (PST) X-Virus-Scanned: amavisd-new at salesdepotinc.com X-Spam-Score: -3.511 X-Spam-Level: X-Spam-Status: No, score=-3.511 tagged_above=-999 required=3 tests=[ALL_TRUSTED=-1.8, AWL=0.288, BAYES_00=-2.599, J_CHICKENPOX_44=0.6] 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 33hPjY1CTYQs for ; Thu, 15 Mar 2007 13:24:59 -0800 (PST) Received: from [192.168.254.7] (unknown [192.168.254.7]) by absolute.salesdepotinc.com (Postfix) with ESMTP id C1D5321C884 for ; Thu, 15 Mar 2007 13:24:59 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <635C86FC-5150-4528-972E-A5E99418D0A9@salesdepotinc.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-java@freebsd.org From: "victori@salesdepotinc.com" Date: Thu, 15 Mar 2007 14:25:38 -0700 X-Mailer: Apple Mail (2.752.2) Subject: 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: Thu, 15 Mar 2007 22:25:01 -0000 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.