babashka 2026-06-27

I'm working on getting a library compatible with Babashka. I'm weirdly unable to import java.util.concurrent.locks.Lock. Is this because it's an interface? Or is there something else I've messed up?

Maybe itโ€™s just not included. Can you check impl/classes.clj

If it's there you might have to upgrade

Ah, no, it's not there. However, ReentrantLock is, and so far that's the only lock type I'm using, so I could change the import for bb.

Or I could just change it to use ReentrantLocks in general until I need another type...

Ah, no java.net.StandardSocketOptions either. Should I submit a patch?

Yes please with a unit test exercising the interop

Looks like I need some extra lock classes and some extra socket classes. I'll see about submitting them as two separate PRs, as they seem distinct use cases.

๐Ÿ‘ 1

The tests for these things are in interop test (answering from phone)

Ah, got it.