Buggy code:
protected int fAnonNum ; protected int fIndent ; protected HashMap fIDMap ; protected Vector fDefined ; private char [ ] fIndentChars = new char [ ] { '\t' , '\t' , '\t' , '\t' , '\t' , '\t' , '\t' , '\t' } ; private XMLString newLine = new XMLString ( new char [ ] { '\n' } , 0 , 1 ) ; public PSVIWriter ( ) { } public void reset ( XMLComponentManager componentManager ) throws XNIException { } public String [ ] getRecognizedFeatures ( ) { } public void setFeature ( String featureId , boolean state ) throws XMLConfigurationException { } public String [ ] getRecognizedProperties ( ) { } public void setProperty ( String propertyId , Object value ) throws XMLConfigurationException { } public Boolean getFeatureDefault ( String featureId ) { } public Object getPropertyDefault ( String propertyId ) { } public void setDocumentHandler ( XMLDocumentHandler documentHandler ) { } public XMLDocumentHandler getDocumentHandler ( ) { } public void setDocumentSource ( XMLDocumentSource source ) { } public XMLDocumentSource getDocumentSource ( ) { } public void startGeneralEntity ( String name , XMLResourceIdentifier identifier , String encoding , Augmentations augs ) throws XNIException { } public void textDecl ( String version , String encoding , Augmentations augs ) throws XNIException { } public void startDocument ( XMLLocator locator , String encoding , NamespaceContext namespaceContext , Augmentations augs ) throws XNIException { } public void xmlDecl ( String version , String encoding , String standalone , Augmentations augs ) throws XNIException { } public void doctypeDecl ( String rootElement , String publicId , String systemId , Augmentations augs ) throws XNIException { } public void comment ( XMLString text , Augmentations augs ) throws XNIException { } public void processingInstruction ( String target , XMLString data , Augmentations augs ) throws XNIException { } public void startElement ( QName element , XMLAttributes attributes , Augmentations augs ) throws XNIException { } public void emptyElement ( QName element , XMLAttributes attributes , Augmentations augs ) throws XNIException { } public void characters ( XMLString text , Augmentations augs ) throws XNIException { } public void ignorableWhitespace ( XMLString text , Augmentations augs ) throws XNIException { } public void endElement ( QName element , Augmentations augs ) throws XNIException { } public void startCDATA ( Augmentations augs ) throws XNIException { } public void endCDATA ( Augmentations augs ) throws XNIException { } public void endDocument ( Augmentations augs ) throws XNIException { } public void endGeneralEntity ( String name , Augmentations augs ) throws XNIException { } private void processAttributes ( XMLAttributes attributes ) { } private void processNamespaceAttributes ( XMLAttributes attributes ) { } private void processInScopeNamespaces ( ) { } private void processPSVIStartElement ( Augmentations augs ) { } private void processPSVIEndElement ( Augmentations augs ) { } private void processPSVIAttribute ( Augmentations augs ) { } private void processPSVISchemaErrorCode ( StringList errorCodes ) { } private void processPSVISchemaInformation ( ElementPSVI elemPSVI ) { } private void processPSVINamespaceItem ( XSNamespaceItem item ) { } private void processPSVISchemaDocuments ( XSNamespaceItem item ) { } private void processPSVISchemaComponents ( XSNamespaceItem item ) { } private void processPSVITypeDefinition ( XSTypeDefinition type ) { } private void processPSVIComplexTypeDefinition ( XSComplexTypeDefinition type ) { } private void processPSVISimpleTypeDefinition ( XSSimpleTypeDefinition type ) { } private void processPSVIFacets ( XSSimpleTypeDefinition type ) { if ( type == null ) return ; XSObjectList facets = type . getFacets ( ) ; XSObjectList multiValueFacets = type . getMultiValueFacets ( ) ; if ( ( ( facets == null ) || ( ( facets . getLength ( ) ) == 0 ) ) && ( ( multiValueFacets == null ) || ( ( multiValueFacets . getLength ( ) ) == 0 ) ) ) { sendElementEvent ( "psv:facets" ) ; } else { sendIndentedElement ( "psv:facets" ) ; if ( facets != null ) { for ( int i = 0 ; i < ( facets . getLength ( ) ) ; i ++ ) { XSFacet facet = ( ( XSFacet ) ( facets . item ( i ) ) ) ; String name = this . translateFacetKind ( facet . getFacetKind ( ) ) ; sendIndentedElement ( ( "psv:" + name ) ) ; sendElementEvent ( "psv:value" , facet . getLexicalFacetValue ( ) ) ; <START_BUG> sendElementEvent ( "psv:fixed" , String . valueOf ( facet . isFixed ( ) ) ) ; <END_BUG> processPSVIAnnotation ( facet . getAnnotation ( ) ) ; sendUnIndentedElement ( ( "psv:" + name ) ) ; } } if ( multiValueFacets != null ) { for ( int i = 0 ; i < ( multiValueFacets . getLength ( ) ) ; i ++ ) { XSMultiValueFacet facet = ( ( XSMultiValueFacet ) ( multiValueFacets . item ( i ) ) ) ; String name = this . translateFacetKind ( facet . getFacetKind ( ) ) ; sendIndentedElement ( ( "psv:" + name ) ) ; StringList values = facet . getLexicalFacetValues ( ) ; for ( int j = 0 ; j < ( values . getLength ( ) ) ; j ++ ) { sendElementEvent ( "psv:value" , values . item ( j ) ) ; } sendElementEvent ( "psv:fixed" , "false" ) ; processPSVIAnnotations ( facet . getAnnotations ( ) ) ; sendUnIndentedElement ( ( "psv:" + name ) ) ; } } sendUnIndentedElement ( "psv:facets" ) ; } } private void processPSVIMemberTypeDefinitions ( XSObjectList memTypes ) { } private void processPSVIAnnotations ( XSObjectList annotations ) { } private void processPSVISchemaAnnotations ( XSObjectList annotations ) { } private void processPSVIAttributeUses ( XSObjectList uses ) { } private void processPSVIAttributeWildcard ( XSWildcard wildcard ) { } private void processPSVIWildcard ( XSWildcard wildcard ) { } private void processPSVIAnnotation ( XSAnnotation ann ) { } private void processDOMElement ( Node node , String elementName , String tagName ) { } private void processDOMAttributes ( Element elem , String tagName ) { }

Fix:
sendElementEvent ( "psv:fixed" , String . valueOf ( facet . getFixed ( ) ) ) ;