Program: 9276
Project: 9276
Buggy source:
/** 
 * Install global values into local config unless values conflict: <ul> <li>Collections are unioned</li> <li>values takes local value unless default and global set</li> <li>this only sets one of outputDir and outputJar as needed</li> <ul> This also configures super if javaOptions change.
 * @param global the AjBuildConfig to read globals from
 */
public void installGlobals(AjBuildConfig global){
  join(aspectpath,global.aspectpath);
  join(classpath,global.classpath);
  if (null == configFile) {
    configFile=global.configFile;
  }
  if (!isEmacsSymMode() && global.isEmacsSymMode()) {
    setEmacsSymMode(true);
  }
  join(files,global.files);
  if (!isGenerateModelMode() && global.isGenerateModelMode()) {
    setGenerateModelMode(true);
  }
  if (null == incrementalFile) {
    incrementalFile=global.incrementalFile;
  }
  if (!incrementalMode && global.incrementalMode) {
    incrementalMode=true;
  }
  join(inJars,global.inJars);
  join(inPath,global.inPath);
  if ((null == lintMode) || (AJLINT_DEFAULT.equals(lintMode))) {
    setLintMode(global.lintMode);
  }
  if (null == lintSpecFile) {
    lintSpecFile=global.lintSpecFile;
  }
  if (!isNoWeave() && global.isNoWeave()) {
    setNoWeave(true);
  }
  if ((null == outputDir) && (null == outputJar)) {
    if (null != global.outputDir) {
      outputDir=global.outputDir;
    }
    if (null != global.outputJar) {
      outputJar=global.outputJar;
    }
  }
  join(sourceRoots,global.sourceRoots);
  if (!isXnoInline() && global.isXnoInline()) {
    setXnoInline(true);
  }
  if (!isXserializableAspects() && global.isXserializableAspects()) {
    setXserializableAspects(true);
  }
  if (!isXlazyTjp() && global.isXlazyTjp()) {
    setXlazyTjp(true);
  }
  if (!isXHasMemberEnabled() && global.isXHasMemberEnabled()) {
    setXHasMemberSupport(true);
  }
  if (!isXNotReweavable() && global.isXNotReweavable()) {
    setXnotReweavable(true);
  }
}

Fixed version (ground truth):
/** 
 * Install global values into local config unless values conflict: <ul> <li>Collections are unioned</li> <li>values takes local value unless default and global set</li> <li>this only sets one of outputDir and outputJar as needed</li> <ul> This also configures super if javaOptions change.
 * @param global the AjBuildConfig to read globals from
 */
public void installGlobals(AjBuildConfig global){
  join(aspectpath,global.aspectpath);
  join(classpath,global.classpath);
  if (null == configFile) {
    configFile=global.configFile;
  }
  if (!isEmacsSymMode() && global.isEmacsSymMode()) {
    setEmacsSymMode(true);
  }
  join(files,global.files);
  if (!isGenerateModelMode() && global.isGenerateModelMode()) {
    setGenerateModelMode(true);
  }
  if (null == incrementalFile) {
    incrementalFile=global.incrementalFile;
  }
  if (!incrementalMode && global.incrementalMode) {
    incrementalMode=true;
  }
  join(inJars,global.inJars);
  join(inPath,global.inPath);
  if ((null == lintMode) || (AJLINT_DEFAULT.equals(lintMode))) {
    setLintMode(global.lintMode);
  }
  if (null == lintSpecFile) {
    lintSpecFile=global.lintSpecFile;
  }
  if (!isNoWeave() && global.isNoWeave()) {
    setNoWeave(true);
  }
  if ((null == outputDir) && (null == outputJar)) {
    if (null != global.outputDir) {
      outputDir=global.outputDir;
    }
    if (null != global.outputJar) {
      outputJar=global.outputJar;
    }
  }
  join(sourceRoots,global.sourceRoots);
  if (!isXnoInline() && global.isXnoInline()) {
    setXnoInline(true);
  }
  if (!isXserializableAspects() && global.isXserializableAspects()) {
    setXserializableAspects(true);
  }
  if (!isXlazyTjp() && global.isXlazyTjp()) {
    setXlazyTjp(true);
  }
  if (!getProceedOnError() && global.getProceedOnError()) {
    setProceedOnError(true);
  }
  setTargetAspectjRuntimeLevel(global.getTargetAspectjRuntimeLevel());
  if (!isXHasMemberEnabled() && global.isXHasMemberEnabled()) {
    setXHasMemberSupport(true);
  }
  if (!isXNotReweavable() && global.isXNotReweavable()) {
    setXnotReweavable(true);
  }
}