Lune

ICSE2022Top-tier venue

Retrieving Data Constraint Implementations Using Fine-Grained Code Patterns

Juan Manuel Florez, Jonathan Perry, Shiyi Wei, Andrian Marcus

Abstract

Business rules are an important part of the requirements of software systems that are meant to support an organization. These rules describe the operations, definitions, and constraints that apply to the organization. Within the software system, business rules are often translated into constraints on the values that are required or allowed for data, called data constraints. Business rules are subject to frequent changes, which in turn require changes to the corresponding data constraints in the software. The ability to efficiently and precisely identify where data constraints are implemented in the source code is essential for performing such necessary changes. In this paper, we introduce Lasso, the first technique that automatically retrieves the method and line of code where a given data constraint is enforced. Lasso is based on traceability link recovery approaches and leverages results from recent research that identified line-of-code level implementation patterns for data constraints. We implement three versions of Lasso that can retrieve data constraint implementations when they are implemented with any one of 13 frequently occurring patterns. We evaluate the three versions on a set of 299 data constraints from 15 real-world Java systems, and find that they improve method-level link recovery by 30%, 70%, and 163%, in terms of true positives within the first 10 results, compared to their text-retrieval-based baseline. More importantly, the Lasso variants correctly identify the line of code implementing the constraint inside the methods for 68% of the 299 constraints.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Verifying Data Constraint Equivalence in FinTech Systems cites Managing data constraints in database-backed web applications
  • DCLINK: Bridging Data Constraint Changes and Implementations in FinTech Systems cites Traceability Transformed: Generating more Accurate Links with Pre-Trained BERT Models
  • DCLINK: Bridging Data Constraint Changes and Implementations in FinTech Systems cites Verifying Data Constraint Equivalence in FinTech Systems
  • DCLINK: Bridging Data Constraint Changes and Implementations in FinTech Systems cites Managing data constraints in database-backed web applications
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Verifying Data Constraint Equivalence in FinTech SystemsChengpeng Wang, Gang Fan, Peisen Yao, Fuxiong Pan et al.ICSE 2023 · 4 citations
  2. DCLINK: Bridging Data Constraint Changes and Implementations in FinTech SystemsWensheng Tang, Chengpeng Wang, Peisen Yao, Rongxin Wu et al.ASE 2023 · 1 citation

Builds on2

  1. Traceability Transformed: Generating more Accurate Links with Pre-Trained BERT ModelsJinfeng Lin, Yalin Liu, Qingkai Zeng, Meng Jiang et al.ICSE 2021 · 124 citations
  2. Managing data constraints in database-backed web applicationsJunwen Yang, Utsav Sethi, Cong Yan, Alvin Cheung et al.ICSE 2020 · 9 citations

Related papers

  1. LiSSA: Toward Generic Traceability Link Recovery Through Retrieval- Augmented GenerationDominik Fuchß, Tobias Hey, Jan Keim, Haoyu Liu et al.ICSE 2025 · 8 citations
  2. Data Constraint Mining for Automatic Reconciliation Scripts GenerationTianxiao Wang, Chen Zhi, Xiaoqun Zhou, Jinjie Wu et al.ISSTA 2023 · 1 citation
  3. API-Misuse Detection Driven by Fine-Grained API-Constraint Knowledge GraphXiaoxue Ren, Xinyuan Ye, Zhenchang Xing, Xin Xia et al.ASE 2020 · 62 citations
  4. An empirical study on API parameter rulesHao Zhong, Na Meng, Zexuan Li, Li JiaICSE 2020 · 16 citations
  5. Establishing multilevel test-to-code traceability linksRobert White, Jens Krinke, Raymond TanICSE 2020 · 37 citations
Dusk over the sea between two cliffs drawn in fine vertical lines