This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/23183] SimpleDateFormat fails to render '' as single quotes
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 23 Aug 2005 17:02:06 -0000
- Subject: [Bug libgcj/23183] SimpleDateFormat fails to render '' as single quotes
- References: <20050801173848.23183.hannes@helma.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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