Program: 190708
Project: 190708
Buggy source:
public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> atds,final AnnotationProcessorEnvironment env){
  return new AnnotationProcessor(){
    final ErrorReceiverImpl errorListener=new ErrorReceiverImpl(env);
    public void process(){
      List<Reference> decls=new ArrayList<Reference>();
      for (      TypeDeclaration d : env.getTypeDeclarations())       decls.add(new Reference(d,env));
      J2SJAXBModel model=XJC.createJavaCompiler().bind(decls,Collections.<QName,Reference>emptyMap(),null,env);
      if (model == null)       return;
      try {
        model.generateSchema(new SchemaOutputResolver(){
          public Result createOutput(          String namespaceUri,          String suggestedFileName) throws IOException {
            File file;
            OutputStream out;
            if (schemaLocations.containsKey(namespaceUri)) {
              file=schemaLocations.get(namespaceUri);
              if (file == null)               return null;
              out=new FileOutputStream(file);
            }
 else {
              file=new File(suggestedFileName);
              out=env.getFiler().createBinaryFile(Filer.Location.CLASS_TREE,"String_Node_Str",file);
            }
            StreamResult ss=new StreamResult(out);
            env.getMessager().printNotice("String_Node_Str" + file);
            ss.setSystemId(file.getPath());
            return ss;
          }
        }
,errorListener);
      }
 catch (      IOException e) {
        errorListener.error(e.getMessage(),e);
      }
    }
  }
;
}

Fixed version (ground truth):
public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> atds,final AnnotationProcessorEnvironment env){
  return new AnnotationProcessor(){
    final ErrorReceiverImpl errorListener=new ErrorReceiverImpl(env);
    public void process(){
      List<Reference> decls=new ArrayList<Reference>();
      for (      TypeDeclaration d : env.getTypeDeclarations()) {
        if (d instanceof ClassDeclaration)         decls.add(new Reference(d,env));
      }
      J2SJAXBModel model=XJC.createJavaCompiler().bind(decls,Collections.<QName,Reference>emptyMap(),null,env);
      if (model == null)       return;
      try {
        model.generateSchema(new SchemaOutputResolver(){
          public Result createOutput(          String namespaceUri,          String suggestedFileName) throws IOException {
            File file;
            OutputStream out;
            if (schemaLocations.containsKey(namespaceUri)) {
              file=schemaLocations.get(namespaceUri);
              if (file == null)               return null;
              out=new FileOutputStream(file);
            }
 else {
              file=new File(suggestedFileName);
              out=env.getFiler().createBinaryFile(Filer.Location.CLASS_TREE,"String_Node_Str",file);
            }
            StreamResult ss=new StreamResult(out);
            env.getMessager().printNotice("String_Node_Str" + file);
            ss.setSystemId(file.getPath());
            return ss;
          }
        }
,errorListener);
      }
 catch (      IOException e) {
        errorListener.error(e.getMessage(),e);
      }
    }
  }
;
}