[Bug 87] New: NumberFormat broken

[email protected]
Newsgroups gmane.comp.java.vm.sablevm.bugs
Message-ID <[email protected]>
http://sablevm.org/bugs/show_bug.cgi?id=87

           Summary: NumberFormat broken
           Product: SableVM
           Version: staging
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]


Test case (TestFormat.java):
8<---------------------------
import java.text.NumberFormat;

public class TestFormat {

  public static void main(String[] args) {
    System.out.println(NumberFormat.getInstance().format(24));
  }

}
8<---------------------------

(Any number will do)

> $HOME/local/staging/bin/sablevm -Y TestFormat
java.lang.NullPointerException
   at java.text.DecimalFormatSymbols.setCurrency (DecimalFormatSymbols.java:397)
   at java.text.DecimalFormatSymbols.DecimalFormatSymbols
(DecimalFormatSymbols.java:151)
   at java.text.NumberFormat.computeInstance (NumberFormat.java:327)
   at java.text.NumberFormat.getNumberInstance (NumberFormat.java:456)
   at java.text.NumberFormat.getInstance (NumberFormat.java:381)
   at java.text.NumberFormat.getInstance (NumberFormat.java:366)
   at TestFormat.main (TestFormat.java:7)
   at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
   at java.lang.VirtualMachine.main (VirtualMachine.java:92)


SableVM version staging+3173
- compile date and time: 2005-01-05 20:41:55 UTC
- gcc version: 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
- 'real life brokenness' features enabled
- signal based exception detection
- copying garbage collection
- bidirectional object layout
- inline-threaded interpreter


Note: Only broken in staging, release 1.1.8 is okay.

Note: Seems to have something to do with Currency or Locale stuff.  I think,
some variables not getting properly initialized for the default locale
somewhere.  Still need to find exact location.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.