For example, consider the following annotation.
Here both value & name attributes are mandatory.
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface TestAnnotation {
String value();
String name();
}
But is it possible to throw compilation error while using this annotation, when either name or value is not specified ?