講演抄録/キーワード |
講演名 |
2010-03-08 15:50
コードクローンに対する変更の一貫性と欠陥発生との関連性に関する分析 ○西田皓司・伏田享平・川口真司・飯田 元(奈良先端大) SS2009-59 |
抄録 |
(和) |
ソースコード中に存在する重複コード列をコードクローン(以下,クローン) という.本稿では,互いにクローンの関係にあるコード片全てに一貫していない変更を行うことと,その後生じる欠陥との関連性について明らかにすることを目的として,クローンが開発の過程でどのように作成され改変されてきたのかを示すクローンの履歴情報を用いて,それら関連性を分析した.分析では,ソフトウェアのあるバージョンにおいて,互いにクローンの関係にあるコード片全てに一貫していない変更を行った場合に生じると考えられる,「クローンの分岐」と「バグの発生」
との関係性についての仮説を設けた上で,仮説の実証を試みた.分析の結果,分岐を含まない場合と比べて,分岐を含む場合の方がバグが発生する傾向にあり,その数も多いということが分かった.この結果から,クローンの分岐は,
その後のバグの発生に影響しており,そのようなクローンに対しては特に注意を払うことが有効であるという結論を導いた. |
(英) |
Duplicated code in the source code is called a code clone. In this paper, for revealing relation between inconsistent change to clone group and the occurrence of the bug, we analyzed code clone history which represents how code clone was changed in the development process. In the analysis, we made hypotheses of the relation between “divergence of the code clone”, generated by inconsistent change to clone group, and “bug occurrence”. Then, we carried out an experimentation using Eclipse development data. The result shows that code clone containing the divergence tends to have more bugs. From this result, we made a conclusion that divergence of the code clone influenced the bug occurrence, and we need to pay attention to such clone. |
キーワード |
(和) |
コードクローン / 改版履歴情報 / コードクローンの分岐 / コードクローン有害性 / 版管理システム / / / |
(英) |
Code clone / Change history / Divergence of code clone / Harmfulness of code clone / Version management system / / / |
文献情報 |
信学技報, vol. 109, no. 456, SS2009-59, pp. 67-72, 2010年3月. |
資料番号 |
SS2009-59 |
発行日 |
2010-03-01 (SS) |
ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
SS2009-59 |