[Bug]: Regular expression with toJson
method panics
#43360
Labels
Lang/LangLib
Related to ballerina/lang.* modules
Team/jBallerina
All the issues related to BIR, JVM backend code generation and runtime
Type/Bug
Description
The
toJson
method is allowed inanydata
types where a non-json types are converted to a respective json compatible types according to the method definition:But the
regexp:RegExp
withtoJson
method panics at runtime:The method description should be updated if this is the correct behaviour or the method should return a json value
Steps to Reproduce
toJson
toJson
Affected Version(s)
Ballerina SwanLake Update 10(2201.10.x)
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: