I'm using J2ObjC for a project. I did setup everything and included my Java classes.
Only note is that I had to disable ARC because otherwise my Java codebase would not transpile/compile. (J2ObjC itself is recommended with arc disabled)
Since I wasn't able to disable for generated files only, I disabled it from Objective-C in Project Inspector -> Target -> Build Settings -> Apple LLVM 8.0 - Language - Objective C -> Objective-C Automatic Reference Counting (No)
Then I created my ViewController in Swift, and instantiated with no problems classes transpiled from Java (headers of generated .h files included in bridging header), and I have not to do any dealloc/release I should have to do in a Obj-C VC with no ARC.
Is this normal/leak-safe? By leak-safe that I mean that if I instantiate a transpiled class object, after the reference count decreases, it gets deallocated automatically as ARC-usual (I know ARC can't be disabled in Swift).
I know that I still have to watch out for reference cycles in Java classes but that's not what I meant by leak-safe.