Affiliation:
1. University of Maryland, College Park, Maryland
Abstract
Many techniques have been developed over the years to automatically find bugs in software. Often, these techniques rely on formal methods and sophisticated program analysis. While these techniques are valuable, they can be difficult to apply, and they aren't always effective in finding real bugs.
Bug patterns
are code idioms that are often errors. We have implemented automatic detectors for a variety of bug patterns found in Java programs. In this paper, we describe how we have used bug pattern detectors to find serious bugs in several widely used Java applications and libraries. We have found that the effort required to implement a bug pattern detector tends to be low, and that even extremely simple detectors find bugs in real applications.From our experience applying bug pattern detectors to real programs, we have drawn several interesting conclusions. First, we have found that even well tested code written by experts contains a surprising number of obvious bugs. Second, Java (and similar languages) have many language features and APIs which are prone to misuse. Finally, that simple automatic techniques can be effective at countering the impact of both ordinary mistakes and misunderstood language features.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Reference45 articles.
1. Apache Ant http://ant.apache.org/ 2004. Apache Ant http://ant.apache.org/ 2004.
2. G. Back and D. Engler. MJ: A system for constructing bug-finding analyses for Java. http://www.stanford.edu/~gback/gback-icse2004.pdf 2003. G. Back and D. Engler. MJ: A system for constructing bug-finding analyses for Java. http://www.stanford.edu/~gback/gback-icse2004.pdf 2003.
Cited by
316 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Impermanent identifiers: Enhanced source code comprehension and refactoring;Journal of Systems and Software;2024-10
2. Do Scratchers Fix Their Bugs? Detecting Fixes of Scratch Static Analysis Warnings;Proceedings of the 19th WiPSCE Conference on Primary and Secondary Computing Education Research;2024-09-16
3. Acknowledging Good Java Code with Code Perfumes;2024 36th International Conference on Software Engineering Education and Training (CSEE&T);2024-07-29
4. Reducing False Positives of Static Bug Detectors Through Code Representation Learning;2024 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER);2024-03-12
5. Enhancing Field Tracking and Interprocedural Analysis to Find More Null Pointer Exceptions;2024 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER);2024-03-12