Buggy code:
public class Translate extends MatchingTask { private String bundle ; private String bundleLanguage ; private String bundleCountry ; private String bundleVariant ; private File toDir ; private String srcEncoding ; private String destEncoding ; private String bundleEncoding ; private String startToken ; private String endToken ; private boolean forceOverwrite ; private Vector filesets = new Vector ( ) ; private Hashtable resourceMap = new Hashtable ( ) ; private FileUtils fileUtils = FileUtils . newFileUtils ( ) ; private long [ ] bundleLastModified = new long [ 7 ] ; private long srcLastModified ; private long destLastModified ; private boolean loaded = false ; public void setBundle ( String bundle ) { } public void setBundleLanguage ( String bundleLanguage ) { } public void setBundleCountry ( String bundleCountry ) { } public void setBundleVariant ( String bundleVariant ) { } public void setToDir ( File toDir ) { } public void setStartToken ( String startToken ) { } public void setEndToken ( String endToken ) { } public void setSrcEncoding ( String srcEncoding ) { } public void setDestEncoding ( String destEncoding ) { } public void setBundleEncoding ( String bundleEncoding ) { } public void setForceOverwrite ( boolean forceOverwrite ) { } public void addFileset ( FileSet set ) { } public void execute ( ) throws BuildException { } private void loadResourceMaps ( ) throws BuildException { Locale locale = new Locale ( bundleLanguage , bundleCountry , bundleVariant ) ; String language = ( ( locale . getLanguage ( ) . length ( ) ) > 0 ) ? "_" + ( locale . getLanguage ( ) ) : "" ; String country = ( ( locale . getCountry ( ) . length ( ) ) > 0 ) ? "_" + ( locale . getCountry ( ) ) : "" ; String variant = ( ( locale . getVariant ( ) . length ( ) ) > 0 ) ? "_" + ( locale . getVariant ( ) ) : "" ; String bundleFile = ( ( ( bundle ) + language ) + country ) + variant ; processBundle ( bundleFile , 0 , false ) ; bundleFile = ( ( bundle ) + language ) + country ; processBundle ( bundleFile , 1 , false ) ; bundleFile = ( bundle ) + language ; processBundle ( bundleFile , 2 , false ) ; bundleFile = bundle ; processBundle ( bundleFile , 3 , false ) ; locale = Locale . getDefault ( ) ; language = ( ( locale . getLanguage ( ) . length ( ) ) > 0 ) ? "_" + ( locale . getLanguage ( ) ) : "" ; country = ( ( locale . getCountry ( ) . length ( ) ) > 0 ) ? "_" + ( locale . getCountry ( ) ) : "" ; variant = ( ( locale . getVariant ( ) . length ( ) ) > 0 ) ? "_" + ( locale . getVariant ( ) ) : "" ; bundleEncoding = System . getProperty ( "file.encoding" ) ; bundleFile = ( ( ( bundle ) + language ) + country ) + variant ; processBundle ( bundleFile , 4 , false ) ; bundleFile = ( ( bundle ) + language ) + country ; processBundle ( bundleFile , 5 , false ) ; bundleFile = ( bundle ) + language ; <START_BUG> processBundle ( bundleFile , 6 , true ) ; <END_BUG> } private void processBundle ( final String bundleFile , final int i , final boolean checkLoaded ) throws BuildException { } private void loadResourceMap ( FileInputStream ins ) throws BuildException { } private void translate ( ) throws BuildException { } }

Fix:
processBundle ( bundleFile , 6 , false ) ;