Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transaction.Timestamp:toString() sometimes throws ClassCastException #281

Open
gimantha opened this issue Aug 22, 2021 · 0 comments
Open
Labels

Comments

@gimantha
Copy link
Contributor

Please check the line https://github.com/ballerina-platform/module-ballerinai-transaction/blob/master/transaction-native/src/main/java/org/ballerinalang/stdlib/transaction/ToString.java#L36

The nativeDataObject here is sometime a long sometime it is an integer. This causes the tests fail. As a temporary fix I used Number to get the long value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants