aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/declarePrecedenceWithClasses/DeclarePrecedenceTestClass.java
diff options
context:
space:
mode:
authoraclement <aclement>2004-03-19 09:28:14 +0000
committeraclement <aclement>2004-03-19 09:28:14 +0000
commit0a017593dcbeab409c1634da87b3f500b848e903 (patch)
treed9bd4b1fe70e8816853fcd994cbc3dd81ed9f1f2 /tests/bugs/declarePrecedenceWithClasses/DeclarePrecedenceTestClass.java
parent5795b4afc617d5ed3ce9f9338ff59fe275bd56b0 (diff)
downloadaspectj-0a017593dcbeab409c1634da87b3f500b848e903.tar.gz
aspectj-0a017593dcbeab409c1634da87b3f500b848e903.zip
Fix for Bugzilla Bug 53012
declare precedence on a class should be a compile-time error
Diffstat (limited to 'tests/bugs/declarePrecedenceWithClasses/DeclarePrecedenceTestClass.java')
-rw-r--r--tests/bugs/declarePrecedenceWithClasses/DeclarePrecedenceTestClass.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/bugs/declarePrecedenceWithClasses/DeclarePrecedenceTestClass.java b/tests/bugs/declarePrecedenceWithClasses/DeclarePrecedenceTestClass.java
new file mode 100644
index 000000000..98e2779d9
--- /dev/null
+++ b/tests/bugs/declarePrecedenceWithClasses/DeclarePrecedenceTestClass.java
@@ -0,0 +1,15 @@
+//Bug 53012
+// DP contains a declare precedence statement that mentions classes
+
+public class DeclarePrecedenceTestClass {
+ public static void main(String[] args) {
+ System.out.println("hello");
+ }
+}
+aspect DP {
+ declare precedence: DeclarePrecedenceTestClass, DP;
+
+ before() : staticinitialization(DeclarePrecedenceTestClass) {
+ System.out.println("ok");
+ }
+}