Date: Thu, 15 Mar 2007 11:33:12 -0700 (PDT) From: Nick Johnson <freebsd@spatula.net> To: Sean Bryant <sean@cyberwang.net> Cc: freebsd-java@freebsd.org Subject: Re: [Fwd: diablo jvm bug with NumberFormat.getCurrencyInstance();] Message-ID: <20070315112457.O97295@turing> In-Reply-To: <45F98797.6060704@cyberwang.net> References: <45F98797.6060704@cyberwang.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070315112457.O97295>