is possible to use UUID in annotation attribute? I tried add UUID in annotation as attribute as you can see below but it gives me error Attribute value must be constant.
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAnnotation {
String name() default "";
UUID guid() default UUID.random(); // there I have error
}
I also tried at least null instad of random UUID but same error.
Thank you.