From: aclement Date: Thu, 20 Mar 2008 00:12:27 +0000 (+0000) Subject: 164356: test and fix: ajdoc X-Git-Tag: V1_6_0rc1~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=331316fef7cc6c6ba77fd0ed63aaed630acaae28;p=aspectj.git 164356: test and fix: ajdoc --- diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java index c21fd252f..4393ba98d 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java @@ -179,6 +179,27 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testNoNPEWithThrownExceptionWarningAndAtAspectj_pr161217() {runTest("NPE with thrown exception warning and at aspectj");} + public void testJavadocCommentsAreSetIfHaveNormalComments_pr164340() { + runTest("javadoc comments are set if have normal comments"); + IHierarchy top = AsmManager.getDefault().getHierarchy(); + + IProgramElement ipe = top.findElementForLabel(top.getRoot(), + IProgramElement.Kind.METHOD,"foo()"); + assertNotNull("expected formal comment to be non null but" + + " found that it was null",ipe.getFormalComment()); + + ipe = top.findElementForLabel(top.getRoot(), + IProgramElement.Kind.METHOD,"bar()"); + assertNotNull("expected formal comment to be non null but" + + " found that it was null",ipe.getFormalComment()); + + ipe = top.findElementForLabel(top.getRoot(), + IProgramElement.Kind.METHOD,"goo()"); + assertNull("expected formal comment to be null but" + + " found that it was " + ipe.getFormalComment(),ipe.getFormalComment()); + + } + public void testBinaryWeavingIntoJava6Library_pr164384() {runTest("binary weaving into java 6 library");} public void testCompilanceJava6ThrowsUsageError_pr164384() {runTest("compliance java 6 throws usage error");} public void testSourceLevelJava6ThrowsUsageError_pr164384() {runTest("source level java 6 throws usage error");} diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml index 89cf410cb..c2220a6f0 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml +++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml @@ -804,6 +804,10 @@ + + + +