You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ParameterizedTypesInAnnotationPatterns.aj 449B

1234567891011121314
  1. import java.util.List;
  2. public aspect ParameterizedTypesInAnnotationPatterns {
  3. // CE - not an annotation type
  4. pointcut simple() : staticinitialization(@List<String> String);
  5. // CE - not an annotation type
  6. pointcut generic() : staticinitialization<T>(@List<T> Class<T>);
  7. // no CE, good enough for now? may improve error reporting for this later
  8. pointcut combined() : staticinitialization(@(Foo || List<String>) String);
  9. }
  10. @interface Foo {}