I\'m trying to use Java annotations, but can\'t seem to get my code to recognize that one exists. What am I doing wrong?
import java.lang.reflect.*; im
You need to specify the annotation as being a Runtime annotation using the @Retention annotation on the annotation interface.
i.e.
@Retention(RetentionPolicy.RUNTIME) @interface MyAnnotation{}