Recommending method invocation context changes

  • Authors:
  • Beat Fluri;Jonas Zuberbühler;Harald C. Gall

  • Affiliations:
  • University of Zurich, Switzerland;University of Zurich, Switzerland;University of Zurich, Switzerland

  • Venue:
  • Proceedings of the 2008 international workshop on Recommendation systems for software engineering
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Our investigations of bug fixes in Eclipse showed that a significant amount of bugs were fixed by moving invocations of certain methods into the then or else-part of if-statements with similar conditions. Based on this finding, we leverage such context changes applied in the past to support developers while adding invocations of the same method. In this paper we present ChangeCommander, an Eclipse plugin that implements our approach to recommend insertions of particular if-statements before calling a method. Change-Commander presents context change suggestions by high-lighting affected method invocations in the source code and provides automated code adaptation support.