[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-java
Subject:    Re: [Fwd: diablo jvm bug with NumberFormat.getCurrencyInstance();]
From:       Nick Johnson <freebsd () spatula ! net>
Date:       2007-03-15 18:33:12
Message-ID: 20070315112457.O97295 () turing
[Download RAW message or body]

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/
_______________________________________________
freebsd-java@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic