作者
Shin Hwei Tan, Darko Marinov, Lin Tan, Gary T Leavens
发表日期
2012/4/17
研讨会论文
2012 IEEE Fifth International Conference on Software Testing, Verification and Validation
页码范围
260-269
出版商
IEEE
简介
Code comments are important artifacts in software. Javadoc comments are widely used in Java for API specifications. API developers write Javadoc comments, and API users read these comments to understand the API, e.g., reading a Javadoc comment for a method instead of reading the method body. An inconsistency between the Javadoc comment and body for a method indicates either a fault in the body or, effectively, a fault in the comment that can mislead the method callers to introduce faults in their code. We present a novel approach, called @TCOMMENT, for testing Javadoc comments, specifically method properties about null values and related exceptions. Our approach consists of two components. The first component takes as input source files for a Java project and automatically analyzes the English text in Javadoc comments to infer a set of likely properties for a method in the files. The second …
引用总数
201220132014201520162017201820192020202120222023202415311141320262428363014
学术搜索中的文章
SH Tan, D Marinov, L Tan, GT Leavens - 2012 IEEE Fifth International Conference on Software …, 2012