[Bug]: Incorrect handling of reserved keyword in Ballerina data mapping generation. #43620
Labels
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Team/CompilerFETools
Semantic API, Formatter, Shell
Type/Bug
userCategory/Compilation
Description
When generating data mappings in Ballerina, the
version
field is incorrectly treated as a reserved keyword. Instead of generating the mapping asversion: patient.version
, the system produces an incorrect mapping like'version: patient.'version
, which is syntactically invalid. This causes the code to fail during execution or compilation.Steps to Reproduce
1. Define Ballerina code
2. Generate data mappings using the defined structure.
3. Observe that the generated mapping incorrectly escapes the version field as
'version: patient.'version
instead of the correct formatversion: patient.version
.Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: