Slicing and Replaying Code Change History
Slicing and Replaying Code Change History
复制标题
切片和重放代码更改历史记录
DOI:
10.1145/2351676.2351713
复制
发表时间:
2012
期刊:
影响因子:
--
通讯作者:
Shinpei Hayashi
中科院分区:
文献类型:
--
作者:
Katsuhisa Maruyama;Eijiro Kitsu;Takayuki Omori;Shinpei Hayashi
Change-aware development environments have recently become feasible and reasonable. These environments can automatically record fine-grained code changes on a program and allow programmers to replay the recorded changes in chronological order. However, they do not always need to replay all the code changes to investigate how a particular entity of the program has been changed. Therefore, they often skip several code changes of no interest. This skipping action is an obstacle that makes many programmers hesitate in using existing replaying tools. This paper proposes a slicing mechanism that can extract only code changes necessary to construct a particular class member of a Java program from the whole history of past code changes. In this mechanism, fine-grained code changes are represented by edit operations recorded on source code of a program. The paper also presents a running tool that implements the proposed slicing and replays its resulting slices. With this tool, programmers can avoid replaying edit operations nonessential to the construction of class members they want to understand.