Hi,
Is it possible to have a public static final field in kotlin annotation like we can have in java?
I tried to use the @JvmField but w/o any luck. It works fine on object but it seems not to work in kotlin.
Java code
Copy code
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Profile(Service1MockedProfile.NAME)
public @interface Service1MockedProfile {
String NAME = "Service1MockedProfile";
}
During the migration from Java to Kotlin this is one of the remaining code that still struggling with.