Program: 185882
Project: 185882
Buggy source:
protected Expression transformMethodCallExpression(MethodCallExpression mce){
  Expression args=transform(mce.getArguments());
  Expression method=transform(mce.getMethod());
  Expression object=transform(mce.getObjectExpression());
  boolean isExplicitThisOrSuper=false;
  boolean isExplicitSuper=false;
  if (object instanceof VariableExpression) {
    VariableExpression ve=(VariableExpression)object;
    isExplicitThisOrSuper=!mce.isImplicitThis() && (ve.isThisExpression() || ve.isSuperExpression());
    isExplicitSuper=ve.isSuperExpression();
  }
  if (mce.isImplicitThis() || isExplicitThisOrSuper) {
    if (mce.isImplicitThis()) {
      Expression ret=findStaticMethodImportFromModule(method,args);
      if (ret != null) {
        if (!((MethodCall)ret).getMethodAsString().equals(method.getText())) {
          ret.setNodeMetaData("String_Node_Str",method.getText());
        }
        setSourcePosition(ret,mce);
        return ret;
      }
      if (method instanceof ConstantExpression && !inLeftExpression) {
        String methodName=(String)((ConstantExpression)method).getValue();
        ret=findStaticFieldOrPropAccessorImportFromModule(methodName);
        if (ret != null) {
          ret=new MethodCallExpression(ret,"String_Node_Str",args);
          setSourcePosition(ret,mce);
          return ret;
        }
      }
    }
 else     if (currentMethod != null && currentMethod.isStatic() && isExplicitSuper) {
      MethodCallExpression ret=new MethodCallExpression(new ClassExpression(currentClass.getSuperClass()),method,args);
      setSourcePosition(ret,mce);
      return ret;
    }
    if (method instanceof ConstantExpression) {
      ConstantExpression ce=(ConstantExpression)method;
      Object value=ce.getValue();
      if (value instanceof String) {
        String methodName=(String)value;
        boolean lookForPossibleStaticMethod=!methodName.equals("String_Node_Str");
        if (currentMethod != null && !currentMethod.isStatic()) {
          if (currentClass.hasPossibleMethod(methodName,args)) {
            lookForPossibleStaticMethod=false;
          }
        }
        if (!inClosure && (inSpecialConstructorCall || (lookForPossibleStaticMethod && currentClass.hasPossibleStaticMethod(methodName,args)))) {
          StaticMethodCallExpression smce=new StaticMethodCallExpression(currentClass,methodName,args);
          setSourcePosition(smce,mce);
          return smce;
        }
      }
    }
  }
  MethodCallExpression result=new MethodCallExpression(object,method,args);
  result.setSafe(mce.isSafe());
  result.setImplicitThis(mce.isImplicitThis());
  result.setSpreadSafe(mce.isSpreadSafe());
  result.setMethodTarget(mce.getMethodTarget());
  result.setGenericsTypes(mce.getGenericsTypes());
  setSourcePosition(result,mce);
  return result;
}

Fixed version (ground truth):
protected Expression transformMethodCallExpression(MethodCallExpression mce){
  Expression args=transform(mce.getArguments());
  Expression method=transform(mce.getMethod());
  Expression object=transform(mce.getObjectExpression());
  boolean isExplicitThisOrSuper=false;
  boolean isExplicitSuper=false;
  if (object instanceof VariableExpression) {
    VariableExpression ve=(VariableExpression)object;
    isExplicitThisOrSuper=!mce.isImplicitThis() && (ve.isThisExpression() || ve.isSuperExpression());
    isExplicitSuper=ve.isSuperExpression();
  }
  if (mce.isImplicitThis() || isExplicitThisOrSuper) {
    if (mce.isImplicitThis()) {
      Expression ret=findStaticMethodImportFromModule(method,args);
      if (ret != null) {
        if (!((MethodCall)ret).getMethodAsString().equals(method.getText())) {
          ret.putNodeMetaData("String_Node_Str",method.getText());
        }
        setSourcePosition(ret,mce);
        return ret;
      }
      if (method instanceof ConstantExpression && !inLeftExpression) {
        String methodName=(String)((ConstantExpression)method).getValue();
        ret=findStaticFieldOrPropAccessorImportFromModule(methodName);
        if (ret != null) {
          ret=new MethodCallExpression(ret,"String_Node_Str",args);
          setSourcePosition(ret,mce);
          return ret;
        }
      }
    }
 else     if (currentMethod != null && currentMethod.isStatic() && isExplicitSuper) {
      MethodCallExpression ret=new MethodCallExpression(new ClassExpression(currentClass.getSuperClass()),method,args);
      setSourcePosition(ret,mce);
      return ret;
    }
    if (method instanceof ConstantExpression) {
      ConstantExpression ce=(ConstantExpression)method;
      Object value=ce.getValue();
      if (value instanceof String) {
        String methodName=(String)value;
        boolean lookForPossibleStaticMethod=!methodName.equals("String_Node_Str");
        if (currentMethod != null && !currentMethod.isStatic()) {
          if (currentClass.hasPossibleMethod(methodName,args)) {
            lookForPossibleStaticMethod=false;
          }
        }
        if (!inClosure && (inSpecialConstructorCall || (lookForPossibleStaticMethod && currentClass.hasPossibleStaticMethod(methodName,args)))) {
          StaticMethodCallExpression smce=new StaticMethodCallExpression(currentClass,methodName,args);
          setSourcePosition(smce,mce);
          return smce;
        }
      }
    }
  }
  MethodCallExpression result=new MethodCallExpression(object,method,args);
  result.setSafe(mce.isSafe());
  result.setImplicitThis(mce.isImplicitThis());
  result.setSpreadSafe(mce.isSpreadSafe());
  result.setMethodTarget(mce.getMethodTarget());
  result.setGenericsTypes(mce.getGenericsTypes());
  setSourcePosition(result,mce);
  return result;
}