You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While performing data mapping in Ballerina, an issue arises when a record contains two fields, one of which is another nested record. If the nested record has a field with the same name as a field in the outer record, it causes a hashCode exception, as seen in the following stack trace:
at java.base/java.util.Objects.hashCode(Objects.java:103)
at org.wso2.ballerinalang.compiler.bir.model.BirScope.hashCode(BirScope.java:29)
This issue may occur due to duplicate field names in the hierarchy, leading to a conflict during compilation or runtime.
Description
While performing data mapping in Ballerina, an issue arises when a record contains two fields, one of which is another nested record. If the nested record has a field with the same name as a field in the outer record, it causes a hashCode exception, as seen in the following stack trace:
at java.base/java.util.Objects.hashCode(Objects.java:103)
at org.wso2.ballerinalang.compiler.bir.model.BirScope.hashCode(BirScope.java:29)
This issue may occur due to duplicate field names in the hierarchy, leading to a conflict during compilation or runtime.
Steps to Reproduce
test.zip
Affected Version(s)
2202.10.1
OS, DB, other environment details and versions
No response
Related area
-> Runtime
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: