Program: 185986
Project: 185986
Buggy source:
/** 
 * Grails 2.0 adds automatic imports to classes in test/unit folder. See org.codehaus.groovy.grails.test.compiler.GrailsTestCompiler and the _TestApp.groovy script.
 */
public void addGrailsTestCompilerCustomizers(CompilationUnit groovyCompilationUnit){
  if (GroovySystem.getVersion().startsWith("String_Node_Str")) {
    ImportCustomizer importCustomizer=new ImportCustomizer(){
      @Override public void call(      SourceUnit source,      GeneratorContext context,      ClassNode classNode) throws CompilationFailedException {
        if (isInGrailsUnitTestSourceFolder(source)) {
          super.call(source,context,classNode);
        }
      }
    }
;
    importCustomizer.addStarImports("String_Node_Str");
    importCustomizer.addStarImports("String_Node_Str");
    importCustomizer.addStaticStars("String_Node_Str");
    groovyCompilationUnit.addPhaseOperation(importCustomizer,importCustomizer.getPhase().getPhaseNumber());
    @SuppressWarnings("String_Node_Str") Class testForClass=null;
    try {
      testForClass=Class.forName("String_Node_Str",false,gcl);
      if (testForClass != null) {
        ASTTransformationCustomizer astTransformationCustomizer=new ASTTransformationCustomizer(testForClass){
          @Override public void call(          SourceUnit source,          GeneratorContext context,          ClassNode classNode) throws CompilationFailedException {
            if (isInGrailsUnitTestSourceFolder(source)) {
              super.call(source,context,classNode);
            }
          }
        }
;
        groovyCompilationUnit.addPhaseOperation(astTransformationCustomizer,astTransformationCustomizer.getPhase().getPhaseNumber());
        ensureGrailsBuildSettings();
      }
    }
 catch (    LinkageError e) {
    }
catch (    ClassNotFoundException e) {
    }
catch (    Exception e) {
      e.printStackTrace(System.err);
    }
  }
}

Fixed version (ground truth):
/** 
 * Grails 2.0 adds automatic imports to classes in test/unit folder. See org.codehaus.groovy.grails.test.compiler.GrailsTestCompiler and the _TestApp.groovy script.
 */
public void addGrailsTestCompilerCustomizers(CompilationUnit groovyCompilationUnit){
  String groovyVersion=GroovySystem.getVersion();
  if (groovyVersion.startsWith("String_Node_Str") || groovyVersion.startsWith("String_Node_Str")) {
    ImportCustomizer importCustomizer=new ImportCustomizer(){
      @Override public void call(      SourceUnit source,      GeneratorContext context,      ClassNode classNode) throws CompilationFailedException {
        if (isInGrailsUnitTestSourceFolder(source)) {
          super.call(source,context,classNode);
        }
      }
    }
;
    importCustomizer.addStarImports("String_Node_Str");
    importCustomizer.addStarImports("String_Node_Str");
    importCustomizer.addStaticStars("String_Node_Str");
    groovyCompilationUnit.addPhaseOperation(importCustomizer,importCustomizer.getPhase().getPhaseNumber());
    @SuppressWarnings("String_Node_Str") Class testForClass=null;
    try {
      testForClass=Class.forName("String_Node_Str",false,gcl);
      if (testForClass != null) {
        ASTTransformationCustomizer astTransformationCustomizer=new ASTTransformationCustomizer(testForClass){
          @Override public void call(          SourceUnit source,          GeneratorContext context,          ClassNode classNode) throws CompilationFailedException {
            if (isInGrailsUnitTestSourceFolder(source)) {
              super.call(source,context,classNode);
            }
          }
        }
;
        groovyCompilationUnit.addPhaseOperation(astTransformationCustomizer,astTransformationCustomizer.getPhase().getPhaseNumber());
        ensureGrailsBuildSettings();
      }
    }
 catch (    LinkageError e) {
    }
catch (    ClassNotFoundException e) {
    }
catch (    Exception e) {
      e.printStackTrace(System.err);
    }
  }
}