summaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
diff options
context:
space:
mode:
authoraclement <aclement>2008-08-28 02:18:27 +0000
committeraclement <aclement>2008-08-28 02:18:27 +0000
commit8e99d6053bd8f2cfa89eb37de5be24e1dd48aef9 (patch)
treee741751a5ecb415109932e005537992c1c752fed /tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
parent985947987e77d5f4aafc8fc74f9e2c9fd9e4bf21 (diff)
downloadaspectj-8e99d6053bd8f2cfa89eb37de5be24e1dd48aef9.tar.gz
aspectj-8e99d6053bd8f2cfa89eb37de5be24e1dd48aef9.zip
245286: test and fix: ajdoc does not generate signature correctly for generic constructer
Diffstat (limited to 'tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
index 022bf79de..21119d00a 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
@@ -11,8 +11,6 @@
package org.aspectj.systemtest.ajc153;
import java.io.File;
-import java.util.Iterator;
-import java.util.List;
import junit.framework.Test;
@@ -108,8 +106,8 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// (2,3)=checkingIfShouldWeave,AcceptingResult for class
// (4,5)=checkingIfShouldWeave,AcceptingResult for aspect
}
- public void testMatchVolatileField_pr150671() {runTest("match volatile field");};
- public void testDuplicateJVMTIAgents_pr151938() {runTest("Duplicate JVMTI agents");};
+ public void testMatchVolatileField_pr150671() {runTest("match volatile field");}
+ public void testDuplicateJVMTIAgents_pr151938() {runTest("Duplicate JVMTI agents");}
public void testLTWWorldWithAnnotationMatching_pr153572() { runTest("LTWWorld with annotation matching");}
public void testReweavableAspectNotRegistered_pr129525 () {
@@ -122,7 +120,7 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testNPEinFieldSignatureImpl_pr155972 () {
runTest("NPE in FieldSignatureImpl");
- }
+ }
public void testNPEinInitializerSignatureImpl_pr155972 () {
runTest("NPE in InitializerSignatureImpl");
@@ -262,6 +260,14 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
assertEquals("expected source signature to be " + expected +
" but found " + ipe.getSourceSignature(),
expected, ipe.getSourceSignature());
+
+ // Generic Method Constructor
+ ipe = top.findElementForLabel(top.getRoot(),
+ IProgramElement.Kind.CONSTRUCTOR,"C(T)");
+ expected = "public <T> C(T b)";
+ assertEquals("expected source signature to be " + expected +
+ " but found " + ipe.getSourceSignature(),
+ expected, ipe.getSourceSignature());
}