From root@absolute.salesdepotinc.com  Thu Mar 15 22:41:42 2007
Return-Path: <root@absolute.salesdepotinc.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 49FB416A400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Mar 2007 22:41:42 +0000 (UTC)
	(envelope-from root@absolute.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 2149313C45E
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Mar 2007 22:41:41 +0000 (UTC)
	(envelope-from root@absolute.salesdepotinc.com)
Received: from localhost (oraclenew.salesdepotinc.com [127.0.0.1])
	by absolute.salesdepotinc.com (Postfix) with ESMTP id E2F3721C884
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Mar 2007 14:09:09 -0800 (PST)
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 TT53MXZ-ftvh for <FreeBSD-gnats-submit@freebsd.org>;
	Thu, 15 Mar 2007 14:09:06 -0800 (PST)
Received: by absolute.salesdepotinc.com (Postfix, from userid 0)
	id B5BBE21C881; Thu, 15 Mar 2007 14:09:06 -0800 (PST)
Message-Id: <20070315220906.B5BBE21C881@absolute.salesdepotinc.com>
Date: Thu, 15 Mar 2007 14:09:06 -0800 (PST)
From: Charlie & <root@absolute.salesdepotinc.com>
Reply-To: Charlie & <root@absolute.salesdepotinc.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: diablo jvm bytecode bug
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         110366
>Category:       java
>Synopsis:       diablo jvm bytecode bug
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-java
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 15 22:50:02 GMT 2007
>Closed-Date:    Sat Mar 17 18:15:21 GMT 2007
>Last-Modified:  Sat Mar 17 18:15:21 GMT 2007
>Originator:     victori &
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD absolute.salesdepotinc.com 6.2-STABLE FreeBSD 6.2-STABLE #2: Wed Feb 21 18:24:49 PST 2007 root@absolute.salesdepotinc.com:/usr/src/sys/i386/compile/ABSOLUTE i386

Sorry I copy pasted it, but I tried about 5 times to get this bug report submitted. 

   1.
      It seems like this issue is with NumberFormat at the bytecode level
   2.
       
   3.
      Here is an example testcase:
   4.
       
   5.
      import java.text.*;
   6.
       
   7.
      public class Test {
   8.
         public static void main(String[] args) {
   9.
          try {
  10.
           System.out.println(NumberFormat.getCurrencyInstance().parse("$1.99").doubleValue());
  11.
          } catch (Exception e) {
  12.
           e.printStackTrace();
  13.
          }
  14.
         }
  15.
      }
  16.
       
  17.
      Save as Test.java ; compile under the SUN JVM:  javac Test.java
  18.
       
  19.
       
  20.
      Run the class under the Diablo jvm and you will receive
  21.
       
  22.
      -bash-2.05b$ java Test
  23.
      java.text.ParseException: Unparseable number: "$1.99"
  24.
              at java.text.NumberFormat.parse(NumberFormat.java:309)
  25.
              at Test.main(Test.java:6)
  26.
       
  27.
      And when I run it with the SUN JDK
  28.
       
  29.
      absolute# /usr/local/linux-sun-jdk1.5.0/bin/java Test
  30.
      1.99
  31.
       
  32.
       
  33.
      If you can't compile Ill provide what I have,
  34.
       
  35.
      http://salesdepotinc.com/Test.java
  36.
      http://salesdepotinc.com/Test.class  (compiled with sun jdk)
  37.
       
  38.
       
  39.
       
  40.
      Works correctly. 

>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Sat Mar 17 18:14:58 UTC 2007 
State-Changed-Why:  
Duplicate of PR java/110364. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110366 
>Unformatted:
