Automated checker for detecting method-hiding in Java programs.

Gespeichert in:
Bibliographische Detailangaben
Titel: Automated checker for detecting method-hiding in Java programs.
Autoren: Nazir, M. Z. I., Alqaradaghi, M., Kozsik, T.
Quelle: Infocommunications Journal; Jun2024, Vol. 16 Issue 2, p19-24, 6p
Schlagwörter: COMPUTER software testing, COMPUTER software development
Abstract: Abstract-Method overriding is a valuable mechanism that happens when an instance method is defined in a subclass and has the same signature and return type as an instance method in the superclass. However, in Java, if those methods are static, then instead method hiding happens, which is a programming weakness and may produce unexpected results. Static analysis is an approach in software testing that examines code to identify various programming weaknesses throughout the software development process without running it. This paper addresses the detection of method-hiding problem in Java programs. We implemented a new automated checker under the SpotBugs static analysis tool that can detect the mentioned problem. According to our results, the checker precisely detected the related issues in both custom test cases and real-world programs. [ABSTRACT FROM AUTHOR]
Copyright of Infocommunications Journal is the property of Scientific Association for Infocommunications and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)
Datenbank: Complementary Index
Beschreibung
Abstract:Abstract-Method overriding is a valuable mechanism that happens when an instance method is defined in a subclass and has the same signature and return type as an instance method in the superclass. However, in Java, if those methods are static, then instead method hiding happens, which is a programming weakness and may produce unexpected results. Static analysis is an approach in software testing that examines code to identify various programming weaknesses throughout the software development process without running it. This paper addresses the detection of method-hiding problem in Java programs. We implemented a new automated checker under the SpotBugs static analysis tool that can detect the mentioned problem. According to our results, the checker precisely detected the related issues in both custom test cases and real-world programs. [ABSTRACT FROM AUTHOR]
ISSN:20612079
DOI:10.36244/ICJ.2024.2.3