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
import ballerina/data.xmldata;
import ballerina/test;
xml x1 = xml `<A>42</A>`;
type A11 record {
int[] \#content;
};
type A12 record {int[] \#content;};
type A13 record {|
int[]|string...;
|};
public function main() {
A11|error a11 = xmldata:parseAsType(x1);
test:assertEquals(a11, {});
}
Output
error Error ("class java.lang.Long cannot be cast to class io.ballerina.runtime.
internal.values.ArrayValue (java.lang.Long is in module java.base of loader 'boo
tstrap'; io.ballerina.runtime.internal.values.ArrayValue is in unnamed module of
loader 'app')")
This should be an error message that didn't reflect the internal details.
The text was updated successfully, but these errors were encountered:
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.
- Reason/EngineeringMistake - The issue occurred due to a mistake made in the past. - Reason/Regression - The issue has introduced a regression. - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components. - Reason/Complex - Issue occurred due to complex scenario. - Reason/Invalid - Issue is invalid. - Reason/Other - None of the above cases.
Code
Output
This should be an error message that didn't reflect the internal details.
The text was updated successfully, but these errors were encountered: