I'm running into a strange issue: lib A is a mixed...
# announcements
b
I'm running into a strange issue: lib A is a mixed kotlin+java project. I'm trying to use lib A from lib B, and all extension functions/free functions in lib A are unable to be found from kotlin in lib B. I am able to see them from java code in lib B. Is there something weird where the kotlin versions get clobbered?
d
Guessing wildly here, but can there be a namespace mixup based on package names?
b
I thought the same thing, so tried some test free/extension functions in a new (test) package and still couldn't see them
And I can see that (lib A) package in lib B. I can see the .class file with the function inside...but I can't "see" that function from kotlin in lib B.
But I do see
MyTestFileKt.myFreeFunc
from java in lib B
Ah ha, it seems be related to lib A being packaged as a bundle in maven
Miraculously I found a fix for it in this bug (the last comment) https://youtrack.jetbrains.com/issue/KT-9164
🤩 1
d
Throw away OSGi. You have all weekend 😉
b
I would if I could 🙂
👍 1