From owner-freebsd-java@FreeBSD.ORG Thu Mar 15 18:56:44 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 957A316A400 for ; Thu, 15 Mar 2007 18:56:44 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (morons.org [64.147.161.226]) by mx1.freebsd.org (Postfix) with ESMTP id 8739413C448 for ; Thu, 15 Mar 2007 18:56:44 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 72B7E1704B; Thu, 15 Mar 2007 11:33:12 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 6E8A017049; Thu, 15 Mar 2007 11:33:12 -0700 (PDT) Date: Thu, 15 Mar 2007 11:33:12 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: Sean Bryant In-Reply-To: <45F98797.6060704@cyberwang.net> Message-ID: <20070315112457.O97295@turing> References: <45F98797.6060704@cyberwang.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-java@freebsd.org Subject: Re: [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:56:44 -0000 It works for me. No exception thrown. java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b00) Java HotSpot(TM) Client VM (build diablo-1.5.0_06-b00, mixed mode) Here's the code I used: 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(); } } } Compiled with javac, and on running it prints "1.99" to standard out, just as one would expect. I built Java from ports on Jan 28. My previous install from Feb 16 last year works also. On Thu, 15 Mar 2007, Sean Bryant wrote: > Victori in ##freebsd on freenode is having trouble sending this message along > so I'm here acting as a proxy. > > -- "Humans are a dangerously insane and very sick species." -- Eckhart Tolle This message has been brought to you by Nick Johnson 2.2 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/