Bowling Green State University
Investigating Differencing Rules for Java to Enhance the Comprehension of Code Changes
Abstract
dc:descriptionAn investigation into differencing rules to support Java for srcDiff is presented. srcDiff is a syntactic differencing approach that uses a set of differencing rules replicating how developers typically edit code to produce more human-readable and comprehensible deltas, while other syntactic differencing approaches focus on finding the minimum edit script to produce deltas. Currently, srcDiff supports C and C++. This thesis aims to help develop differencing rules to extend support to Java. To develop the differencing rules, we investigate the Java syntax and grammar to identify Java language features not handled by srcML and srcDiff. An empirical investigation is then performed to see how srcDiff currently marks up these language features. The results of the empirical investigation do not indicate the need for differencing rules for record classes, enum classes, pattern matching with instanceof, and try-with-resources. However, rules need to be added for the arrow case to be nested within syntactic constructs prescribed by the Java grammar and when there are conversions between permits, extends, and implements constructs.
Degree
thesis:*- Name thesis:degree_name
- Master of Science (MS)
- Level thesis:degree_level
- masters
- Discipline thesis:degree_discipline
- Computer Science
- Grantor dc:publisher
- Bowling Green State University
- Year dc:date
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Borketey, Humphrey B.
- Chair dc:contributor.committeechair
-
- Decker, Michael
Subjects
dc:subject × 4Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=bgsu1742903199956602