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

18 lines
311 B
Java

import java.lang.annotation.*;
public class ShortValueMatching {
public static void main(String[] args) { }
@Anno(sval=32700) public void methodOne() {}
@Anno(sval=27) public void methodTwo() {}
}
@interface Anno {
short sval();
}
aspect X {
before(): execution(@Anno(sval=32700) * *(..)) {}
}