From c4ce2448ee0ad553d6768a22e82bba7f437a93fa Mon Sep 17 00:00:00 2001 From: acolyer Date: Fri, 4 Nov 2005 09:04:58 +0000 Subject: tests for 103741 - use of java 5 specific language features now policed at < 1.5 source level --- tests/java5/compliance/AJ5FeaturesAtJ14.aj | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/java5/compliance/AJ5FeaturesAtJ14.aj (limited to 'tests/java5') 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 -- cgit v1.2.3