Skip to content

Comments

Address inconsistencies in typeInfo and typeNames in mappings API#430

Merged
KavinduZoysa merged 3 commits intoballerina-platform:1.2.xfrom
pasindufernando1:1439TypeInfoDuplicate
Oct 25, 2025
Merged

Address inconsistencies in typeInfo and typeNames in mappings API#430
KavinduZoysa merged 3 commits intoballerina-platform:1.2.xfrom
pasindufernando1:1439TypeInfoDuplicate

Conversation

@pasindufernando1
Copy link
Contributor

@pasindufernando1 pasindufernando1 commented Oct 25, 2025

Purpose

Duplicate PR of #374 targetting patch 1.3.2
Fixes : wso2/product-ballerina-integrator#1439

(cherry picked from commit 6db15c8)
(cherry picked from commit e7f7475)
(cherry picked from commit ddace6f)
Copilot AI review requested due to automatic review settings October 25, 2025 10:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a duplicate type info issue by improving type resolution for record fields and preventing duplicate type information in array type names. The changes ensure that when dealing with record field symbols, the system properly traverses to the underlying type descriptor, and that external type prefixes are only added when necessary.

  • Adds special handling for RECORD_FIELD symbols to retrieve the correct module ID from the type descriptor
  • Prevents duplicate module prefix addition for array types when type info already exists

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ReferenceType.java Adds RECORD_FIELD symbol handling to correctly resolve module IDs by accessing the type descriptor
DataMapManager.java Adds null check for typeInfo to prevent duplicate module prefixes in array type names

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pasindufernando1 pasindufernando1 changed the title 1439 type info duplicate Address inconsistencies in typeInfo and typeNames in mappings API Oct 25, 2025
@KavinduZoysa KavinduZoysa merged commit 796e495 into ballerina-platform:1.2.x Oct 25, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants