From 71459e4052ad7022ad94d4f4eca55b2789e1b9a5 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 11 Jun 2008 17:24:43 +0000 Subject: [PATCH] 164340: ajdoc fix and test --- tests/bugs153/pr164340/C.java | 15 +++++++++++++++ .../aspectj/systemtest/ajc153/Ajc153Tests.java | 9 +++++++++ .../src/org/aspectj/systemtest/ajc153/ajc153.xml | 4 ++++ 3 files changed, 28 insertions(+) create mode 100644 tests/bugs153/pr164340/C.java 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 @@ + + + + -- 2.39.5