Fork me on GitHub
#datalevin
<
2022-04-19
>
vlad_poh07:04:18

I'm getting the following error when i call getTime in a defpodfn

Method getTime on class java.util.Date not allowed!
Not sure if it is a datalevin or babashka error I have a gist https://gist.github.com/kbosompem/b8e6a40aed607204b187e641df73fab2 if that helps @borkdude @huahaiy

Huahai17:04:26

java.util.Date is in reflection config of dtlv, so it is likely that babashka does not allow it. You may ask it to be added.

borkdude17:04:11

It's not bb:

$ bb -e '(.getTime (java.util.Date.))'
1650389319696
The issue is that you have to explicitly add the class in the SCI config to :classes or say :classes {:allow :all}

👍 1
Huahai17:04:21

thx, will do

👍 1
vlad_poh18:04:05

Thanks @borkdude @huahaiy you are both amazing!! Loving both products.

❤️ 1
borkdude08:04:39

@huahaiy Let me know if you want any advice on the interop in SCI

borkdude18:04:34

I just tried out your gist @U06GMV0B0 with 0.6.7 and it worked perfectly. Thanks @huahaiy!

🎉 1
Huahai18:04:56

thx for trying