Buggy code:
public class XSComplexTypeDecl implements XSComplexTypeDefinition , TypeInfo { String fName = null ; String fTargetNamespace = null ; XSTypeDefinition fBaseType = null ; short fDerivedBy = XSConstants . DERIVATION_RESTRICTION ; short fFinal = XSConstants . DERIVATION_NONE ; short fBlock = XSConstants . DERIVATION_NONE ; short fMiscFlags = 0 ; XSAttributeGroupDecl fAttrGrp = null ; short fContentType = CONTENTTYPE_EMPTY ; XSSimpleType fXSSimpleType = null ; XSParticleDecl fParticle = null ; XSCMValidator fCMValidator = null ; XSCMValidator fUPACMValidator = null ; XSObjectListImpl fAnnotations = null ; private XSNamespaceItem fNamespaceItem = null ; static final int DERIVATION_ANY = 0 ; static final int DERIVATION_RESTRICTION = 1 ; static final int DERIVATION_EXTENSION = 2 ; static final int DERIVATION_UNION = 4 ; static final int DERIVATION_LIST = 8 ; public XSComplexTypeDecl ( ) { } public void setValues ( String name , String targetNamespace , XSTypeDefinition baseType , short derivedBy , short schemaFinal , short block , short contentType , boolean isAbstract , XSAttributeGroupDecl attrGrp , XSSimpleType simpleType , XSParticleDecl particle , XSObjectListImpl annotations ) { } public void setName ( String name ) { } public short getTypeCategory ( ) { } public String getTypeName ( ) { } public short getFinalSet ( ) { } public String getTargetNamespace ( ) { } private static final short CT_IS_ABSTRACT = 1 ; private static final short CT_HAS_TYPE_ID = 2 ; private static final short CT_IS_ANONYMOUS = 4 ; public boolean containsTypeID ( ) { } public void setIsAbstractType ( ) { } public void setContainsTypeID ( ) { } public void setIsAnonymous ( ) { } public XSCMValidator getContentModel ( CMBuilder cmBuilder ) { } public synchronized XSCMValidator getContentModel ( CMBuilder cmBuilder , boolean forUPA ) { } public XSAttributeGroupDecl getAttrGrp ( ) { } public String toString ( ) { } void appendTypeInfo ( StringBuffer str ) { String [ ] contentType = new String [ ] { "EMPTY" , "SIMPLE" , "ELEMENT" , "MIXED" } ; String [ ] derivedBy = new String [ ] { "EMPTY" , "EXTENSION" , "RESTRICTION" } ; <START_BUG> str . append ( "Complex<seq2seq4repair_space>type<seq2seq4repair_space>name='" ) . append ( fTargetNamespace ) . append ( "," ) . append ( getTypeName ( ) ) . append ( "',<seq2seq4repair_space>" ) ; <END_BUG> if ( ( fBaseType ) != null ) { str . append ( "<seq2seq4repair_space>base<seq2seq4repair_space>type<seq2seq4repair_space>name='" ) . append ( fBaseType . getName ( ) ) . append ( "',<seq2seq4repair_space>" ) ; } str . append ( "<seq2seq4repair_space>content<seq2seq4repair_space>type='" ) . append ( contentType [ fContentType ] ) . append ( "',<seq2seq4repair_space>" ) ; str . append ( "<seq2seq4repair_space>isAbstract='" ) . append ( getAbstract ( ) ) . append ( "',<seq2seq4repair_space>" ) ; str . append ( "<seq2seq4repair_space>hasTypeId='" ) . append ( containsTypeID ( ) ) . append ( "',<seq2seq4repair_space>" ) ; str . append ( "<seq2seq4repair_space>final='" ) . append ( fFinal ) . append ( "',<seq2seq4repair_space>" ) ; str . append ( "<seq2seq4repair_space>block='" ) . append ( fBlock ) . append ( "',<seq2seq4repair_space>" ) ; if ( ( fParticle ) != null ) { str . append ( "<seq2seq4repair_space>particle='" ) . append ( fParticle . toString ( ) ) . append ( "',<seq2seq4repair_space>" ) ; } str . append ( "<seq2seq4repair_space>derivedBy='" ) . append ( derivedBy [ fDerivedBy ] ) . append ( "'.<seq2seq4repair_space>" ) ; } public boolean derivedFromType ( XSTypeDefinition ancestor , short derivationMethod ) { } public boolean derivedFrom ( String ancestorNS , String ancestorName , short derivationMethod ) { } public boolean isDOMDerivedFrom ( String ancestorNS , String ancestorName , int derivationMethod ) { } private boolean isDerivedByAny ( String ancestorNS , String ancestorName , int derivationMethod , XSTypeDefinition type ) { } private boolean isDerivedByRestriction ( String ancestorNS , String ancestorName , int derivationMethod , XSTypeDefinition type ) { } private boolean isDerivedByExtension ( String ancestorNS , String ancestorName , int derivationMethod , XSTypeDefinition type ) { } public void reset ( ) { } public short getType ( ) { } public String getName ( ) { } public boolean getAnonymous ( ) { } public String getNamespace ( ) { } public XSTypeDefinition getBaseType ( ) { } public short getDerivationMethod ( ) { } public boolean isFinal ( short derivation ) { } public short getFinal ( ) { } public boolean getAbstract ( ) { } public XSObjectList getAttributeUses ( ) { } public XSWildcard getAttributeWildcard ( ) { } public short getContentType ( ) { } public XSSimpleTypeDefinition getSimpleType ( ) { } public XSParticle getParticle ( ) { } public boolean isProhibitedSubstitution ( short prohibited ) { } public short getProhibitedSubstitutions ( ) { } public XSObjectList getAnnotations ( ) { } public XSNamespaceItem getNamespaceItem ( ) { } void setNamespaceItem ( XSNamespaceItem namespaceItem ) { } public XSAttributeUse getAttributeUse ( String namespace , String name ) { } public String getTypeNamespace ( ) { } public boolean isDerivedFrom ( String typeNamespaceArg , String typeNameArg , int derivationMethod ) { } }

Fix:
str . append ( "Complex<seq2seq4repair_space>type<seq2seq4repair_space>name='" ) . append ( fTargetNamespace ) . append ( ',' ) . append ( getTypeName ( ) ) . append ( "',<seq2seq4repair_space>" ) ;