I thought they used to be marked as synthetic in t...
# announcements
m
I thought they used to be marked as synthetic in the bytecode to prevent this, however, it seems to not (any longer ?) be the case. This is a big pain for us when building APIs in Kotlin
u
They can’t be marked as synthetic since using them from Java sources in the same module should be OK. I think we had an inspection for Java sources that highlighted internal members from other modules as red, but I don’t know if it affects completion. Might be worth reporting an issue about that.
m
Mmmm. It doesn't help for non-IJ users. I'll file a ticket but I'd like to find an alternative solution.
l
Maybe they could be marked
@JvmSynthetic
for Kotlin-only modules?
u
Synthetic leads to many issues, for example debuggers won’t step into synthetic methods by default, some code coverage tools will not track these methods, etc.