aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2008-06-11 17:24:43 +0000
committeraclement <aclement>2008-06-11 17:24:43 +0000
commit71459e4052ad7022ad94d4f4eca55b2789e1b9a5 (patch)
tree7b929d21d05a89bad6e683e6c41936f34f5844dc
parent8d7f7e1d4ad5e302b60074db044636817ba4e5a5 (diff)
downloadaspectj-71459e4052ad7022ad94d4f4eca55b2789e1b9a5.tar.gz
aspectj-71459e4052ad7022ad94d4f4eca55b2789e1b9a5.zip
164340: ajdoc fix and test
-rw-r--r--tests/bugs153/pr164340/C.java15
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java9
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/ajc153.xml4
3 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs153/pr164340/C.java b/tests/bugs153/pr164340/C.java
new file mode 100644
index 000000000..482dbf481
--- /dev/null
+++ b/tests/bugs153/pr164340/C.java
@@ -0,0 +1,15 @@
+public class C {
+
+ /**
+ * This is a constructor
+ */
+ public C() {
+ }
+
+ /**
+ * This is method foo
+ */
+ public void foo() {
+ }
+
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
index 8e533427f..afe524aba 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
@@ -23,6 +23,15 @@ import org.aspectj.weaver.bcel.Utility;
public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+
+ public void testFormalCommentsAreSetForConstructorIPEs_pr164340() {
+ runTest("formal comments are set for constructor ipes");
+ IHierarchy top = AsmManager.getDefault().getHierarchy();
+ IProgramElement ipe = top.findElementForLabel(top.getRoot(),
+ IProgramElement.Kind.CONSTRUCTOR,"C()");
+ assertNotNull("expected formal comment to be non null but" +
+ " found that it was null",ipe.getFormalComment());
+ }
//public void testGenericsProblem_pr151978() { runTest("generics problem");}
// public void testArgnamesAndJavac_pr148381() { runTest("argNames and javac");}
// public void testCFlowXMLAspectLTW_pr149096() { runTest("cflow xml concrete aspect"); }
diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
index c2220a6f0..28bda3226 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
+++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
@@ -15,6 +15,10 @@
</compile>
</ajc-test>
+ <ajc-test dir="bugs153/pr164340" title="formal comments are set for constructor ipes">
+ <compile files="C.java" options="-emacssym -XjavadocsInModel"/>
+ </ajc-test>
+
<ajc-test dir="bugs153/pr162135" title="bcexception in annotation style around advice">
<compile files="Foo.java" options="-1.5"/>
<run class="Foo"/>