Hey guys! I have this annotation ```@Retention(An...
# announcements
c
Hey guys! I have this annotation
Copy code
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
annotation class Navigate
Being used like
Copy code
@Feature(Features.Login::class)
object Login: FeatureModel() {
    override var featureItem = Config::loginFeature
    override var action = ".login.open"
    override var fallbackDisplayName = "Login"
    override var requiresLogin = false
    override var version = "1"

    @Navigate
    fun newInstance(): Intent {
        return Intent("TEST")
    }
}
But
Copy code
Login::class.declaredFunctions.map { it.annotations }
Returns null in the evaluator. Any thoughts?
n
maybe because it's an
object
there's an issue?
c
You’re a genius!!!!!!!!!!! It looks like my
@Navigate
annotation needs to be paired with
@JvmStatic
when in an object
n
I try 😛 there's probably a better way than @JvmStatic, but good enough for now I guess