Nazir, M. Z. I. and Alqaradaghi, M. and Kozsik, Tamás (2024) Automated checker for detecting method-hiding in Java programs. INFOCOMMUNICATIONS JOURNAL, 16 (2). pp. 19-24. ISSN 2061-2079
|
Text
InfocomJournal__3.pdf - Updated Version Download (875kB) | Preview |
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 de velopment 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 zhe related issues in both custom test cases and realword programs.
Item Type: | Article |
---|---|
Uncontrolled Keywords: | Java, method-hiding, precise automated checker, static analysis, SpotBugs tool |
Subjects: | Q Science / természettudomány > QA Mathematics / matematika Q Science / természettudomány > QA Mathematics / matematika > QA75 Electronic computers. Computer science / számítástechnika, számítógéptudomány Q Science / természettudomány > QA Mathematics / matematika > QA76 Computer software / programozás |
SWORD Depositor: | MTMT SWORD |
Depositing User: | MTMT SWORD |
Date Deposited: | 15 Aug 2024 11:11 |
Last Modified: | 15 Aug 2024 11:11 |
URI: | https://real.mtak.hu/id/eprint/202593 |
Actions (login required)
![]() |
Edit Item |