Abstract
We present NPEX, a new technique for repairing Java null pointer exceptions (NPEs) without tests. State-of-the-art NPE repair techniques rely on test suites written by developers for patch validation. Unfortunately, however, those are typically future test cases that are unavailable at the time bugs are reported or insufficient to identify correct patches. Unlike existing techniques, NPEX does not require test cases; instead, NPEX automatically infers the repair specification of the buggy program and uses the inferred specification to validate patches. The key idea is to learn a statistical model that predicts how developers would handle NPEs by mining null-handling patterns from existing codebases, and to use a variant of symbolic execution that can infer the repair specification from the buggy program using the model. We evaluated NPEX on real-world NPEs collected from diverse open-source projects. The results show that NPEX significantly outperforms the current state-of-the-art.
| Original language | English |
|---|---|
| Title of host publication | Proceedings - 2022 ACM/IEEE 44th International Conference on Software Engineering, ICSE 2022 |
| Publisher | IEEE Computer Society |
| Pages | 1532-1544 |
| Number of pages | 13 |
| ISBN (Electronic) | 9781450392211 |
| DOIs | |
| Publication status | Published - 2022 Jul 5 |
| Event | 44th ACM/IEEE International Conference on Software Engineering, ICSE 2022 - Hybrid, Pittsburgh, United States Duration: 2022 May 22 → 2022 May 27 |
Publication series
| Name | Proceedings - International Conference on Software Engineering |
|---|---|
| Volume | 2022-May |
| ISSN (Print) | 0270-5257 |
Conference
| Conference | 44th ACM/IEEE International Conference on Software Engineering, ICSE 2022 |
|---|---|
| Country/Territory | United States |
| City | Hybrid, Pittsburgh |
| Period | 22/5/22 → 22/5/27 |
Bibliographical note
Publisher Copyright:© 2022 ACM.
ASJC Scopus subject areas
- Software
Fingerprint
Dive into the research topics of 'NPEX: Repairing Java Null Pointer Exceptions without Tests'. Together they form a unique fingerprint.Cite this
- APA
- Standard
- Harvard
- Vancouver
- Author
- BIBTEX
- RIS