Skip to main navigation Skip to search Skip to main content

Automatic Localization of Potential Faults for Java Runtime Exceptions

  • Hiroshima University

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

Abstract

Exceptions are unintended or undesired events that occur during program execution and have a negative effect on the robustness of the program. In the Java language, exceptions are divided into two types: checked exceptions and unchecked exceptions. A checked exception is required to be handled at compile time whereas an unchecked exception occurs at run time, so it is also called a runtime exception. Runtime exceptions can cause serious consequences like system crashes. Today's programs are still likely to contain a large number of runtime exceptions, such as null pointer exceptions and arithmetic exceptions in real-world bugs, indicating that the error-checking strategy is insufficient to clear the occurrence of runtime exceptions. In this paper, we propose a potential fault localization approach for Java runtime exceptions. It mainly uses regular expressions to support the detection of code fragments containing such exceptions and checklists to help the developer examine whether the exception may occur to cause errors.

Original languageEnglish
Title of host publicationProceedings - 2022 9th International Conference on Dependable Systems and Their Applications, DSA 2022
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages320-329
Number of pages10
ISBN (Electronic)9781665488778
DOIs
StatePublished - 2022
Externally publishedYes
Event9th International Conference on Dependable Systems and Their Applications, DSA 2022 - Wulumuqi, China
Duration: 4 Aug 2022 → 5 Aug 2022

Publication series

NameProceedings - 2022 9th International Conference on Dependable Systems and Their Applications, DSA 2022

Conference

Conference9th International Conference on Dependable Systems and Their Applications, DSA 2022
Country/TerritoryChina
CityWulumuqi
Period4/08/22 → 5/08/22

Keywords

  • regular expressions
  • runtime exception
  • software inspection

Fingerprint

Dive into the research topics of 'Automatic Localization of Potential Faults for Java Runtime Exceptions'. Together they form a unique fingerprint.

Cite this