summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-18 10:33:07 +0000
committeraclement <aclement>2004-08-18 10:33:07 +0000
commit5b902242b00ffaf3105335f231e45291e7d09320 (patch)
tree4d9bff2b8bd2a1beb1385d9e45c99509c6637415 /org.aspectj.ajdt.core/testdata
parent8837d683dc44f6c380b25359d7ce90b9a17e8a66 (diff)
downloadaspectj-5b902242b00ffaf3105335f231e45291e7d09320.tar.gz
aspectj-5b902242b00ffaf3105335f231e45291e7d09320.zip
Fix for Bugzilla Bug 71076
Missing Javadoc comments that aren't missing
Diffstat (limited to 'org.aspectj.ajdt.core/testdata')
-rw-r--r--org.aspectj.ajdt.core/testdata/javadoc/World.java84
1 files changed, 84 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testdata/javadoc/World.java b/org.aspectj.ajdt.core/testdata/javadoc/World.java
new file mode 100644
index 000000000..28591bb2b
--- /dev/null
+++ b/org.aspectj.ajdt.core/testdata/javadoc/World.java
@@ -0,0 +1,84 @@
+// In this class we use all the constructs and attach javadoc to them all - checking
+// that the compiler doesnt complain that any javadoc is missing.
+
+/**
+ * A comment
+ * @see AspectJavadocComment
+ */
+public aspect World {
+
+ public void test0() {}
+
+ /**
+ * A comment
+ * @see PointcutJavadocComment1
+ */
+ pointcut firstPC() : execution(* *.sayHello(..));
+
+ public void test1() {}
+
+ /**
+ * A comment
+ * @see AfterReturningJavadocComment
+ */
+ after() returning : firstPC() {
+ System.out.println("world");
+ }
+
+ public void test2(){}
+
+ /**
+ * comment2
+ * @see PointcutJavadocComment2
+ */
+ public pointcut secondPC(): execution(* *(..));
+
+ public void test3(){}
+
+ /**
+ * I am a comment attached to a warning
+ * @see declarewarningJavadocComment
+ */
+ declare warning: call(* *elephant*(..)) : "I am a warning";
+
+ public void test4() {}
+
+ /**
+ * comment attached to around advice
+ * @see AroundAdviceJavadocComment
+ */
+ void around(): call(* *abc*(..)) {
+ }
+
+ public void test5() {}
+
+ /**
+ * ITD method attached comment
+ * @see IntertypeMethodComment
+ */
+ public void X.method() { }
+
+ public void test6() {}
+
+ /**
+ * ITD field attached comment
+ * @see IntertypeFieldComment
+ */
+ public int X.i;
+
+ public int test7;
+
+ static class X {
+
+ }
+
+}
+
+// to keep the javadoc processor happy ...
+class AspectJavadocComment {}
+class PointcutJavadocComment1 {}
+class PointcutJavadocComment2 {}
+class AfterReturningJavadocComment {}
+class AroundAdviceJavadocComment {}
+class IntertypeMethodComment {}
+class IntertypeFieldComment {} \ No newline at end of file