[Fwd: diablo jvm bug with NumberFormat.getCurrencyInstance();]

Nick Johnson freebsd at spatula.net
Thu Mar 15 18:56:44 UTC 2007


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/


More information about the freebsd-java mailing list