JEqualityGen

Author:

Grech Neville1,Rathke Julian1,Fischer Bernd1

Affiliation:

1. University of Southampton, Southampton, United Kingdom

Abstract

Manually implementing equals (for object comparisons) and hashCode (for object hashing) methods in large software projects is tedious and error-prone. This is due to many special cases, such as field shadowing, comparison between different types, or cyclic object graphs. Here, we present JEqualityGen, a source code generator that automatically derives implementations of these methods. JEqualityGen proceeds in two states: it first uses source code reflection in MetaAspectJ to generate aspects that contain the method implementations, before it uses weaving on the bytecode level to insert these into the target application. JEqualityGen generates not only correct, but efficient source code that on a typical large-scale Java application exhibits a performance improvement of more than two orders of magnitude in the equality operations generated, compared to an existing system based on runtime reflection. JEqualityGen achieves this by generating runtime profiling code that collects data. This enables it to generate optimised method implementations in a second round.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference19 articles.

1. }}Sun Microsystems Inc. Java Platform Standard Ed. 6. }}Sun Microsystems Inc. Java Platform Standard Ed. 6.

2. Equality and hashing for (almost) free: Generating implementations from abstraction functions

3. }}JFreeChart. http://www.jfree.org/jfreechart/. }}JFreeChart. http://www.jfree.org/jfreechart/.

4. Object identity

Cited by 6 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Semi-automated Algorithm for Complex Test Data Generation for Interface-based Regression Testing of Software Components;Annals of Computer Science and Information Systems;2021-09-26

2. Algorithm for generation of complex test data for interface-based regression testing of software components;Proceedings of the 36th Annual ACM Symposium on Applied Computing;2021-03-22

3. Search for the Memory Duplicities in the Java Applications Using Shallow and Deep Object Comparison;Proceedings of the 2019 Federated Conference on Computer Science and Information Systems;2019-09-26

4. Consistency Checking between Java Equals and hashCode Methods Using Software Analysis Workbench;IEICE Transactions on Information and Systems;2019-08-01

5. Deep Object Comparison for Interface-based Regression Testing of Software Components;Proceedings of the 2018 Federated Conference on Computer Science and Information Systems;2018-09-26

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3