ACM Home Page
Please provide us with feedback. Feedback
CReN: a tool for tracking copy-and-paste code clones and renaming identifiers consistently in the IDE
Full text PdfPdf (388 KB)
Source OOPSLA workshop on eclipse technology eXchange archive
Proceedings of the 2007 OOPSLA workshop on eclipse technology eXchange table of contents
Montreal, Quebec, Canada
Pages 16-20  
Year of Publication: 2007
ISBN:978-1-60558-015-9
Authors
Patricia Jablonski  Clarkson University, Potsdam, NY
Daqing Hou  Clarkson University, Potsdam, NY
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 6,   Downloads (12 Months): 42,   Citation Count: 6
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1328279.1328283
What is a DOI?

ABSTRACT

Programmers often copy and paste code so that they can reuse the existing code to complete a similar task. Many times, modifications to the newly pasted code include renaming all instances of an identifier, such as a variable name, consistently throughout the fragment. When these modifications are done manually, undetected inconsistencies and errors can result in the code, for example, a single instance can be missed and mistakenly not renamed. To help programmers avoid making this type of copy-paste error, we created a tool, named CReN, to provide tracking and identifier renaming support within copy-and-paste clones in an integrated development environment (IDE). CReN tracks the code clones involved when copying and pasting occurs in the IDE and infers a set of rules based on the relationships between the identifiers in these code fragments. These rules capture the programmer's intentions, for example, that a particular group of identifiers should be renamed consistently together. Programmers can also provide feedback to improve the accuracy of the inferred rules by specifying that a particular instance of an identifier is to be renamed separately. We introduce our CReN tool, which is implemented as an Eclipse plug-in in Java.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
2
 
3
4
 
5


Collaborative Colleagues:
Patricia Jablonski: colleagues
Daqing Hou: colleagues