is there a way to reference inline function in Jav...
# announcements
j
is there a way to reference inline function in Java terms, I'm trying to create an ArchJUnit rule that specific function should not be used but how can I reference function without class name or fully qualified name
s
No. Inline functions don’t exist as independent named functions in the bytecode. The Java compiler can’t interpret them so they are only callable in Kotlin.
It’s pretty self explanatory but the compiler inlines the function’s body at the call site.
j
Yeah makes sense