Buggy code:
public void setPublic ( boolean b ) { } public void setProtected ( boolean b ) { } public void setPackage ( boolean b ) { } public void setPrivate ( boolean b ) { } public void setAccess ( Javadoc . AccessType at ) { } public void setDoclet ( String docletName ) { } public void setDocletPath ( Path docletPath ) { } public void setDocletPathRef ( Reference r ) { } public Javadoc . DocletInfo createDoclet ( ) { } public void addTaglet ( Javadoc . ExtensionInfo tagletInfo ) { } public void setOld ( boolean b ) { } public void setClasspath ( Path path ) { } public Path createClasspath ( ) { } public void setClasspathRef ( Reference r ) { } public void setBootclasspath ( Path path ) { } public Path createBootclasspath ( ) { } public void setBootClasspathRef ( Reference r ) { } public void setExtdirs ( String path ) { } public void setExtdirs ( Path path ) { } public void setVerbose ( boolean b ) { } public void setLocale ( String locale ) { } public void setEncoding ( String enc ) { } public void setVersion ( boolean b ) { } public void setUse ( boolean b ) { } public void setAuthor ( boolean b ) { } public void setSplitindex ( boolean b ) { } public void setWindowtitle ( String title ) { } public void setDoctitle ( String doctitle ) { } public void addDoctitle ( Javadoc . Html text ) { } public void setHeader ( String header ) { } public void addHeader ( Javadoc . Html text ) { } public void setFooter ( String footer ) { } public void addFooter ( Javadoc . Html text ) { } public void setBottom ( String bottom ) { } public void addBottom ( Javadoc . Html text ) { } public void setLinkoffline ( String src ) { } public void setGroup ( String src ) { } public void setLink ( String src ) { } public void setNodeprecated ( boolean b ) { } public void setNodeprecatedlist ( boolean b ) { } public void setNotree ( boolean b ) { } public void setNoindex ( boolean b ) { } public void setNohelp ( boolean b ) { } public void setNonavbar ( boolean b ) { } public void setSerialwarn ( boolean b ) { } public void setStylesheetfile ( File f ) { } public void setHelpfile ( File f ) { } public void setDocencoding ( String enc ) { } public void setPackageList ( String src ) { } public Javadoc . LinkArgument createLink ( ) { } public class LinkArgument { private String href ; private boolean offline = false ; private File packagelistLoc ; private URL packagelistURL ; private boolean resolveLink = false ; public LinkArgument ( ) { } public void setHref ( String hr ) { } public String getHref ( ) { } public void setPackagelistLoc ( File src ) { } public File getPackagelistLoc ( ) { } public void setPackagelistURL ( URL src ) { } public URL getPackagelistURL ( ) { } public void setOffline ( boolean offline ) { } public boolean isLinkOffline ( ) { } public void setResolveLink ( boolean resolve ) { } public boolean shouldResolveLink ( ) { } } public Javadoc . TagArgument createTag ( ) { } static final String [ ] SCOPE_ELEMENTS = new String [ ] { "overview" , "packages" , "types" , "constructors" , "methods" , "fields" } ; public class TagArgument extends FileSet { private String name = null ; private boolean enabled = true ; private String scope = "a" ; public TagArgument ( ) { } public void setName ( String name ) { } public void setScope ( String verboseScope ) throws BuildException { <START_BUG> verboseScope = verboseScope . toLowerCase ( Locale . US ) ; <END_BUG> boolean [ ] elements = new boolean [ Javadoc . SCOPE_ELEMENTS . length ] ; boolean gotAll = false ; boolean gotNotAll = false ; StringTokenizer tok = new StringTokenizer ( verboseScope , "," ) ; while ( tok . hasMoreTokens ( ) ) { String next = tok . nextToken ( ) . trim ( ) ; if ( next . equals ( "all" ) ) { if ( gotAll ) { getProject ( ) . log ( "Repeated<seq2seq4repair_space>tag<seq2seq4repair_space>scope<seq2seq4repair_space>element:<seq2seq4repair_space>all" , MSG_VERBOSE ) ; } gotAll = true ; } else { int i ; for ( i = 0 ; i < ( Javadoc . SCOPE_ELEMENTS . length ) ; i ++ ) { if ( next . equals ( Javadoc . SCOPE_ELEMENTS [ i ] ) ) { break ; } } if ( i == ( Javadoc . SCOPE_ELEMENTS . length ) ) { throw new BuildException ( ( "Unrecognised<seq2seq4repair_space>scope<seq2seq4repair_space>element:<seq2seq4repair_space>" + next ) ) ; } else { if ( elements [ i ] ) { getProject ( ) . log ( ( "Repeated<seq2seq4repair_space>tag<seq2seq4repair_space>scope<seq2seq4repair_space>element:<seq2seq4repair_space>" + next ) , MSG_VERBOSE ) ; } elements [ i ] = true ; gotNotAll = true ; } } } if ( gotNotAll && gotAll ) { throw new BuildException ( ( "Mixture<seq2seq4repair_space>of<seq2seq4repair_space>\"all\"<seq2seq4repair_space>and<seq2seq4repair_space>other<seq2seq4repair_space>scope<seq2seq4repair_space>" + "elements<seq2seq4repair_space>in<seq2seq4repair_space>tag<seq2seq4repair_space>parameter." ) ) ; } if ( ( ! gotNotAll ) && ( ! gotAll ) ) { throw new BuildException ( ( "No<seq2seq4repair_space>scope<seq2seq4repair_space>elements<seq2seq4repair_space>specified<seq2seq4repair_space>in<seq2seq4repair_space>tag<seq2seq4repair_space>" + "parameter." ) ) ; } if ( gotAll ) { this . scope = "a" ; } else { StringBuffer buff = new StringBuffer ( elements . length ) ; for ( int i = 0 ; i < ( elements . length ) ; i ++ ) { if ( elements [ i ] ) { buff . append ( Javadoc . SCOPE_ELEMENTS [ i ] . charAt ( 0 ) ) ; } } this . scope = buff . toString ( ) ; }

Fix:
verboseScope = verboseScope . toLowerCase ( Locale . ENGLISH ) ;