org.aspectj/tests/features160/annotationValueMatching/ErrorOne.java
2008-02-25 21:28:33 +00:00

17 lines
288 B
Java

import java.lang.annotation.*;
public class ErrorOne {
public static void main(String[] args) { }
}
@interface Anno {
float fval();
}
enum Color { RED,GREEN,BLUE };
// Non existent value of the annotation!
aspect X {
before(): execution(@Anno(ival=Color.GREEN) * *(..)) {}
}