We study the anomalous cross-section lineshape of e(+)e(-) -> D (D) over bar with an effective field theory. Near the threshold, most of the D (D) over bar pairs are from the decay of psi(3770). Taking into account the fact that the nonresonance background is dominated by the psi(2S) transition, the produced D (D) over bar pair can undergo final-state interactions before the pair is detected. We propose an effective field theory for the low-energy D (D) over bar interactions to describe these final-state interactions and find that the anomalous lineshape of the D (D) over bar cross section observed by the BESII Collaboration can be well described. (C) 2012 Elsevier B.V. All rights reserved.