bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug libgcj/23183] SimpleDateFormat fails to render '' as single quotes


From: tromey at gcc dot gnu dot org
Subject: [Bug libgcj/23183] SimpleDateFormat fails to render '' as single quotes
Date: 23 Aug 2005 17:02:06 -0000

------- Additional Comments From tromey at gcc dot gnu dot org  2005-08-23 
17:02 -------
Here is the complete test case:

import java.text.*;
import java.util.*;

public class pr23183 {
  public static void main(String[] args) {
    SimpleDateFormat sdf = new SimpleDateFormat("''yyyy-MM-dd HH:mm:ss''");
    // Should have quotes around it, but does not.
    System.out.println(sdf.format(new Date()));

    // should produce ' ' 'FOO' ' '
    sdf = new SimpleDateFormat("'' '' '''FOO''' '' ''");
    System.out.println(sdf.format(new Date()));
  }
}


This fails with both gcj 4.1 and classpath cvs head (0.17+)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23183




reply via email to

[Prev in Thread] Current Thread [Next in Thread]