------- 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