Buggy code:
public class DatePickerSettings implements Serializable { public static final StaticResourceReference BUTTON_ICON_1 = new StaticResourceReference ( DatePickerSettings . class , "calendar_icon_1.jpg" ) ; public static final StaticResourceReference BUTTON_ICON_2 = new StaticResourceReference ( DatePickerSettings . class , "calendar_icon_2.jpg" ) ; public static final StaticResourceReference BUTTON_ICON_3 = new StaticResourceReference ( DatePickerSettings . class , "calendar_icon_3.jpg" ) ; public static final StaticResourceReference STYLE_AQUA = new StaticResourceReference ( DatePickerSettings . class , "style//aqua//theme.css" ) ; public static final StaticResourceReference STYLE_WINTER = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-blue.css" ) ; public static final StaticResourceReference STYLE_BLUE = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-blue2.css" ) ; public static final StaticResourceReference STYLE_SUMMER = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-brown.css" ) ; public static final StaticResourceReference STYLE_GREEN = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-green.css" ) ; public static final StaticResourceReference STYLE_SYSTEM = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-system.css" ) ; public static final StaticResourceReference STYLE_TAS = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-tas.css" ) ; public static final StaticResourceReference STYLE_WIN2K = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-win2k.css" ) ; public static final StaticResourceReference STYLE_WIN2K_1 = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-win2k-1.css" ) ; public static final StaticResourceReference STYLE_WIN2K_2 = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-win2k-2.css" ) ; public static final StaticResourceReference STYLE_WIN2K_COLD_1 = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-win2k-cold-1.css" ) ; public static final StaticResourceReference STYLE_WIN2K_COLD_2 = new StaticResourceReference ( DatePickerSettings . class , "style//calendar-win2k-cold-2.css" ) ; public static final StaticResourceReference LANGUAGE_EN = new StaticResourceReference ( DatePickerSettings . class , "lang//calendar-en.js" ) ; public static final StaticResourceReference LANGUAGE_NL = new StaticResourceReference ( DatePickerSettings . class , "lang//calendar-nl.js" ) ; private String ifFormat = null ; private boolean mode = true ; private int firstDay = 0 ; private boolean weekNumbers = true ; private String align = null ; private boolean showsTime = false ; private String timeFormat = null ; private boolean electric = true ; private boolean showOthers = false ; private ResourceReference style = DatePickerSettings . STYLE_AQUA ; private ResourceReference icon = DatePickerSettings . BUTTON_ICON_1 ; private ResourceReference language = DatePickerSettings . LANGUAGE_EN ; public DatePickerSettings ( ) { } public String toScript ( ) { } protected String getDatePattern ( ) { Locale locale = Session . get ( ) . getLocale ( ) ; if ( Locale . GERMAN . equals ( locale ) ) { return "%d.%m.%Y" ; } if ( "nl" . equals ( locale . getLanguage ( ) ) ) { return "%d-%m-%Y" ; } <START_BUG> return "%Y//%m//%d" ; <END_BUG> } public String getAlign ( ) { } public void setAlign ( String align ) { } public boolean isElectric ( ) { } public void setElectric ( boolean electric ) { } public int getFirstDay ( ) { } public void setFirstDay ( int firstDay ) { } public String getIfFormat ( ) { } public void setIfFormat ( String ifFormat ) { } public boolean isMode ( ) { } public void setMode ( boolean mode ) { } public boolean isShowOthers ( ) { } public void setShowOthers ( boolean showOthers ) { } public boolean isShowsTime ( ) { } public void setShowsTime ( boolean showsTime ) { } public String getTimeFormat ( ) { } public void setTimeFormat ( String timeFormat ) { } public boolean isWeekNumbers ( ) { } public void setWeekNumbers ( boolean weekNumbers ) { } public ResourceReference getIcon ( ) { } public void setIcon ( ResourceReference icon ) { } public ResourceReference getLanguage ( ) { } public void setLanguage ( ResourceReference language ) { } public ResourceReference getStyle ( ) { } public void setStyle ( ResourceReference style ) { } }

Fix:
return "%m//%d//%Y" ;