Consistency Checking between Java Equals and hashCode Methods Using Software Analysis Workbench

Kozo Okano, Harauchi Satoshi, Toshifusa Sekizawa, Shinpei Ogata, Shin Nakajima · IEICE Transactions on Information and Systems · 2019

Java is one of important program language today. In Java, in order to build sound software, we have to carefully implement two fundamental methods hashCode and equals. This requirement, however, is not easy to follow in real software development. Some existing studies for ensuring the correctness of these two methods rely on static analysis, which are limited to loop-free programs. This paper proposes a new solution to this important problem, using software analysis workbench (SAW), an open source tool. The efficiency is evaluated through experiments. We also provide a useful situation where cost of regression testing is reduced when program refactoring is conducted.

Read the paper · More papers on PaperTik