[Bug]:Error When Casting readonly
Record Type
#43999
Labels
needTriage
The issue has to be inspected and labeled manually
Team/jBallerina
All the issues related to BIR, JVM backend code generation and runtime
Type/Bug
userCategory/Compilation
Milestone
Description
The PR #2227 includes several fixes related to lock usage and readonly types in the GraphQL module, which works in update 11. I ported these changes to the Update 12 branch, but the build fails with the following error:
https://github.com/ballerina-platform/module-ballerina-graphql/actions/runs/14348808975/job/40223545386?pr=2227#step:5:520
The failure occurs when a readonly type record value is created on the Ballerina side(L46), parsed into a visitor, and then cast back to its original state:
This value is then passed into the following visitor function(L65), where the cast results in a runtime error:
Steps to Reproduce
Run this test case using following command
./gradlew build -Pgroups=query_complexity
Affected Version(s)
2201.12.0
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: