Automated Aspect Recommendation through Clustering-Based Fan-in Analysis

  • Authors:
  • Danfeng Zhang; Yao Guo; Xiangqun Chen

  • Affiliations:
  • Key Lab. of High Confidence Software Technol., Peking Univ., Beijing;Key Lab. of High Confidence Software Technol., Peking Univ., Beijing;Key Lab. of High Confidence Software Technol., Peking Univ., Beijing

  • Venue:
  • ASE '08 Proceedings of the 2008 23rd IEEE/ACM International Conference on Automated Software Engineering
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Identifying code implementing a crosscutting concern (CCC) automatically can benefit the maintainability and evolvability of the application. Although many approaches have been proposed to identify potential aspects, a lot of manual work is typically required before these candidates can be converted into refactorable aspects. In this paper, we propose a new aspect mining approach, called clustering-based fan-in analysis (CBFA), to recommend aspect candidates in the form of method clusters, instead of single methods. CBFA uses a new lexical based clustering approach to identify method clusters and rank the clusters using a new ranking metric called cluster fan- in. Experiments on Linux and JHotDraw show that CBFA can provide accurate recommendations while improving aspect mining coverage significantly compared to other state-of-the-art mining approaches.