Is anyone here familiar with Kotlin compiler inter...
# announcements
t
Is anyone here familiar with Kotlin compiler internals (specifically Java interop)? I am working with annotation processors and have the following code:
Copy code
class SomeClass() {
    @get:GetterAnnotation
    internal val x
          get() = 3
}
according to the bytecode viewer, a method with the following signature is generated:
Copy code
// access flags 0x11
public final getX$production_sources_for_module_com_tschuchort_kotlinelements_annotation_test_main()I
@Lcom/tschuchort/kotlinelements/GetterAnnotation;()
And I can access it with that name from a Java class in the same module. But when I use my annotation processor to inspect the
ExecutableElement
of the getter it has a
simpleName
of
getX$annotation_test
. Why is that?