Please use this identifier to cite or link to this item:
http://hdl.handle.net/10397/114191
Title: | Understanding and detecting annotation-induced faults of static analyzers | Authors: | Zhang, H Pei, Y Liang, S Tan, SH |
Issue Date: | Jul-2024 | Source: | Proceedings of the ACM on Software Engineering, July 2024, v. 1, no. FSE, 33, p. 722-744 | Abstract: | Static analyzers can reason about the properties and behaviors of programs and detect various issues without executing them. Hence, they should extract the necessary information to understand the analyzed program well. Annotation has been a widely used feature for different purposes in Java since the introduction of Java 5. Annotations can change program structures and convey semantics information without awareness of static analyzers, consequently leading to imprecise analysis results. This paper presents the first comprehensive study of annotation-induced faults (AIF) by analyzing 246 issues in six open-source and popular static analyzers (i.e., PMD, SpotBugs, CheckStyle, Infer, SonarQube, and Soot). We analyzed the issues' root causes, symptoms, and fix strategies and derived ten findings and some practical guidelines for detecting and repairing annotation-induced faults. Moreover, we developed an automated testing framework called AnnaTester based on three metamorphic relations originating from the findings. AnnaTester generated new tests based on the official test suites of static analyzers and unveiled 43 new faults, 20 of which have been fixed. The results confirm the value of our study and its findings. | Publisher: | Association for Computing Machinery | Journal: | Proceedings of the ACM on Software Engineering | EISSN: | 2994-970X | DOI: | 10.1145/3643759 | Rights: | This work is licensed under a Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). © 2024 Copyright held by the owner/author(s). The following publication Zhang, H., Pei, Y., Liang, S., & Tan, S. H. (2024). Understanding and Detecting Annotation-Induced Faults of Static Analyzers. Proc. ACM Softw. Eng., 1(FSE), Article 33 is available at https://doi.org/10.1145/3643759. |
Appears in Collections: | Conference Paper |
Files in This Item:
File | Description | Size | Format | |
---|---|---|---|---|
3643759.pdf | 426.11 kB | Adobe PDF | View/Open |
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.