Buggy code:
public class FastDateParserTest { private static final String SHORT_FORMAT_NOERA = "y//M//d//h//a//E//Z" ; private static final String LONG_FORMAT_NOERA = "yyyy//MMMM//dddd//hhhh//aaaa//EEEE//ZZZZ" ; private static final String SHORT_FORMAT = "G//" + ( FastDateParserTest . SHORT_FORMAT_NOERA ) ; private static final String LONG_FORMAT = "GGGG//" + ( FastDateParserTest . LONG_FORMAT_NOERA ) ; private static final String yMdHmsSZ = "yyyy-MM-dd'T'HH:mm:ss.SSS<seq2seq4repair_space>Z" ; private static final String DMY_DOT = "dd.MM.yyyy" ; private static final String YMD_SLASH = "yyyy//MM//dd" ; private static final String MDY_DASH = "MM-DD-yyyy" ; private static final String MDY_SLASH = "MM//DD//yyyy" ; private static final TimeZone REYKJAVIK = TimeZone . getTimeZone ( "Atlantic//Reykjavik" ) ; private static final TimeZone NEW_YORK = TimeZone . getTimeZone ( "America//New_York" ) ; private static final TimeZone GMT = TimeZone . getTimeZone ( "GMT" ) ; private static final Locale SWEDEN = new Locale ( "sv" , "SE" ) ; DateParser getInstance ( String format ) { } private DateParser getDateInstance ( int dateStyle , Locale locale ) { } private DateParser getInstance ( String format , Locale locale ) { } private DateParser getInstance ( String format , TimeZone timeZone ) { } protected DateParser getInstance ( String format , TimeZone timeZone , Locale locale ) { } @ Test public void test_Equality_Hash ( ) { } @ Test public void testParseZone ( ) throws ParseException { } @ Test public void testParseLongShort ( ) throws ParseException { } @ Test public void testAmPm ( ) throws ParseException { } @ Test public void testParses ( ) throws Exception { } @ Test public void testEras ( ) throws Exception { Set < ImmutablePair < Locale , String > > locale2Absent = new HashSet < ImmutablePair < Locale , String > > ( ) ; Map < Locale , String [ ] > locale2Eras = new HashMap < Locale , String [ ] > ( ) ; for ( Locale locale : Locale . getAvailableLocales ( ) ) { for ( TimeZone tz : new TimeZone [ ] { FastDateParserTest . GMT } ) { Calendar cal = Calendar . getInstance ( tz ) ; String [ ] eras = DateFormatSymbols . getInstance ( locale ) . getEras ( ) ; String [ ] erasPrint = new String [ eras . length ] ; for ( int i = 0 ; i < ( eras . length ) ; i ++ ) { String s = eras [ i ] ; if ( ( s . length ( ) ) > 4 ) { erasPrint [ i ] = s ; } else { erasPrint [ i ] = display ( s ) ; } } for ( int year : new int [ ] { 2003 , 1927 , 1913 , 1868 , 1867 , - 2003 } ) { cal . clear ( ) ; if ( year < 0 ) { cal . set ( ( - year ) , 1 , 10 ) ; cal . set ( Calendar . ERA , GregorianCalendar . BC ) ; } else { cal . set ( year , 1 , 10 ) ; } Date in = cal . getTime ( ) ; for ( String format : new String [ ] { "GGGG" , "G" } ) { SimpleDateFormat sdf = new SimpleDateFormat ( format , locale ) ; String fmt = sdf . format ( in ) ; boolean found = false ; for ( String era : eras ) { if ( fmt . startsWith ( era ) ) { found = true ; } } if ( ! found ) { locale2Absent . add ( ImmutablePair . of ( locale , fmt ) ) ; locale2Eras . put ( locale , erasPrint ) ; } } } } } if ( ( locale2Absent . size ( ) ) > 0 ) { <START_BUG> System . out . println ( "One<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>missing<seq2seq4repair_space>era<seq2seq4repair_space>designators<seq2seq4repair_space>detected" ) ; <END_BUG> for ( ImmutablePair < Locale , String > me : locale2Absent ) { Locale loc = me . getKey ( ) ; String [ ] erasPrint = locale2Eras . get ( loc ) ; System . out . println ( ( ( ( ( ( "Locale:<seq2seq4repair_space>" + ( loc . toString ( ) ) ) + "<seq2seq4repair_space>era:<seq2seq4repair_space>'" ) + ( display ( me . getValue ( ) ) ) ) + "'<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>in<seq2seq4repair_space>eras:<seq2seq4repair_space>" ) + ( Arrays . toString ( erasPrint ) ) ) ) ; } } } private String display ( String fmt ) { } @ Test public void testLocales_Long_AD ( ) throws Exception { } @ Test public void testLocales_Long_BC ( ) throws Exception { } @ Test public void testLocales_Short_AD ( ) throws Exception { } @ Test public void testLocales_Short_BC ( ) throws Exception { } @ Test public void testLocales_LongNoEra_AD ( ) throws Exception { } @ Test public void testLocales_LongNoEra_BC ( ) throws Exception { } @ Test public void testLocales_ShortNoEra_AD ( ) throws Exception { } @ Test public void testLocales_ShortNoEra_BC ( ) throws Exception { } private void testLocales ( String format , boolean eraBC ) throws Exception { } private String trimMessage ( String msg ) { } private void checkParse ( Locale locale , Calendar cal , SimpleDateFormat sdf , DateParser fdf ) throws ParseException { } @ Test public void testParseNumerics ( ) throws ParseException { } @ Test public void testQuotes ( ) throws ParseException { } @ Test public void testDayOf ( ) throws ParseException { } @ Test public void testShortDateStyleWithLocales ( ) throws ParseException { } @ Test public void testLowYearPadding ( ) throws ParseException { } @ Test public void testMilleniumBug ( ) throws ParseException { } @ Test public void testLang303 ( ) throws ParseException { } @ Test public void testLang538 ( ) throws ParseException { } @ Test public void testEquals ( ) { } @ Test public void testToStringContainsName ( ) { } @ Test public void testPatternMatches ( ) { }

Fix:
System . out . println ( "FastDateParserTest:<seq2seq4repair_space>one<seq2seq4repair_space>or<seq2seq4repair_space>more<seq2seq4repair_space>missing<seq2seq4repair_space>era<seq2seq4repair_space>designators<seq2seq4repair_space>detected:" ) ;