module-ballerinai-transaction icon indicating copy to clipboard operation
module-ballerinai-transaction copied to clipboard

transaction.Timestamp:toString() sometimes throws ClassCastException

Open gimantha opened this issue 3 years ago • 0 comments

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

gimantha avatar Aug 22 '21 04:08 gimantha