Toward Declarative Auditing of Java Software for Graceful Exception Handling
dc.contributor.author | St. Amour, Leo | en |
dc.contributor.author | Tilevich, Eli | en |
dc.date.accessioned | 2024-10-08T13:40:45Z | en |
dc.date.available | 2024-10-08T13:40:45Z | en |
dc.date.issued | 2024-09-13 | en |
dc.date.updated | 2024-10-01T07:49:22Z | en |
dc.description.abstract | Despite their language-integrated design, Java exceptions can be difficult to use effectively. Although Java exceptions are syntactically straightforward, negligent practices often result in code logic that is not only inelegant but also unsafe. This paper explores the challenge of auditing Java software to enhance the effectiveness and safety of its exception logic. We revisit common anti-patterns associated with Java exception usage and argue that, for auditing, their detection requires a more nuanced approach than mere identification. Specifically, we investigate whether reporting such anti-patterns can be prioritized for subsequent examination. We prototype our approach as Händel, in which antipatterns and their priority, or weight, are expressed declaratively using probabilistic logic programming. Evaluation with representative open-source code bases suggests Händel’s promise in detecting, reporting, and ranking the antipatterns, thus helping streamline Java software auditing to ensure the safety and quality of exception-handling logic. | en |
dc.description.version | Published version | en |
dc.format.mimetype | application/pdf | en |
dc.identifier.doi | https://doi.org/10.1145/3679007.3685057 | en |
dc.identifier.uri | https://hdl.handle.net/10919/121298 | en |
dc.language.iso | en | en |
dc.publisher | ACM | en |
dc.rights | In Copyright | en |
dc.rights.holder | The author(s) | en |
dc.rights.uri | http://rightsstatements.org/vocab/InC/1.0/ | en |
dc.title | Toward Declarative Auditing of Java Software for Graceful Exception Handling | en |
dc.type | Article - Refereed | en |
dc.type.dcmitype | Text | en |