summaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-11-04 09:04:58 +0000
committeracolyer <acolyer>2005-11-04 09:04:58 +0000
commitc4ce2448ee0ad553d6768a22e82bba7f437a93fa (patch)
tree78f12db25c289521d7230f7441a174706ee0d6c9 /tests/java5
parenta3e8bb5c97809d468330a566d7e548a68b222ad3 (diff)
downloadaspectj-c4ce2448ee0ad553d6768a22e82bba7f437a93fa.tar.gz
aspectj-c4ce2448ee0ad553d6768a22e82bba7f437a93fa.zip
tests for 103741 - use of java 5 specific language features now policed at < 1.5 source level
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/compliance/AJ5FeaturesAtJ14.aj32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/java5/compliance/AJ5FeaturesAtJ14.aj b/tests/java5/compliance/AJ5FeaturesAtJ14.aj
new file mode 100644
index 000000000..bc344f86b
--- /dev/null
+++ b/tests/java5/compliance/AJ5FeaturesAtJ14.aj
@@ -0,0 +1,32 @@
+public aspect AJ5FeaturesAtJ14 {
+
+ pointcut p1() : @annotation(Foo);
+
+ pointcut p2() : @this(Foo);
+
+ pointcut p3() : @target(Foo);
+
+ pointcut p4() : @args(Foo);
+
+ pointcut p5() : @within(Foo);
+
+ pointcut p6() : @withincode(Foo);
+
+ declare @type : Bar : @Foo;
+
+ declare @method : * *.main() : @Foo;
+
+ declare @field : * main : @Foo;
+
+ declare @constructor : Bar.new(..) : @Foo;
+
+ // annotations within type and signature patterns...
+
+ pointcut p7() : execution(@Foo * *(..));
+
+ declare parents : (@Foo *) extends Bar;
+}
+
+class Foo {}
+
+class Bar {} \ No newline at end of file