講演抄録/キーワード |
講演名 |
2014-10-23 14:30
テストケースを利用したJavaプログラムのアクセス修飾子過剰性分析手法 ○大西理功(阪大)・小堀一雄(NTTデータ)・松下 誠・井上克郎(阪大) SS2014-26 |
抄録 |
(和) |
Javaプログラム内には,実際の被アクセス範囲に比べて過剰に広く設定されているアクセス修飾子(Accessibility Excessiveness,AE)が多数存在することが知られている.しかし,既存のAE検出手法ではAEの発生理由が考慮されていないため,検出結果には障害となりうるAE以外に設計者の意図により生まれたAEも含まれてしまっていた.そこで本報告では,意図的なアクセスを自動的に判別してAEから除外して障害となりう るAEの適合率をあげることを,テストケースを用いることで実現する.また,ソースコードのテストカバレッジとそのAE変化の関係を調査した.その結果,テストケースにより意図的に作られたAEを発見することができた.また,調査対象のソフトウェアについては,AEメソッドのテストカバレッジが高いものほど,修正されていることが分かった. |
(英) |
In Java Program, we have found there are many access modifiers declared as wider scope than its real access, and we named Accessibility Excessiveness (AE) to such modifiers. In previous AE detection method, we failed to exclude developer-intentional AE from the result, since the method cannot consider why modifiers are in AE. In this paper, we propose a detection method that identifies developer-intentional AE by using test cases. We also investigated if there are some relations between the test coverage of source code and its AE status. Consequently, we succeeded to find developer-intentional with the proposed method. And we also found that the higher the coverage of the AE methods in subject software, the more AE is fixed during its development. |
キーワード |
(和) |
アクセス修飾子 / Javaプログラム / 開発履歴 / 設計情報 / テストケース / テストカバレッジ / / |
(英) |
Access Modifier / Java Program / Development History / Software Design / Testcase / Test Coverage / / |
文献情報 |
信学技報, vol. 114, no. 271, SS2014-26, pp. 7-12, 2014年10月. |
資料番号 |
SS2014-26 |
発行日 |
2014-10-16 (SS) |
ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
SS2014-26 |