summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-01-27 11:34:14 +0000
committeraclement <aclement>2006-01-27 11:34:14 +0000
commit2602c786913715b1b0530037d43cf47e682637cc (patch)
treeadc93c193aff4a89f008a1e7b5b5bfa71f7e4051 /tests
parenta723cc27959dbb9b6e3eb3eea797163bd4ac7102 (diff)
downloadaspectj-2602c786913715b1b0530037d43cf47e682637cc.tar.gz
aspectj-2602c786913715b1b0530037d43cf47e682637cc.zip
fix for 125405 - demote raws to simple on incremental compiles when necessary.
Diffstat (limited to 'tests')
-rw-r--r--tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
index a17a57a8d..8eb84ceee 100644
--- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
+++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
@@ -282,6 +282,21 @@ public class MultiProjectIncrementalTests extends AjdeInteractionTestbed {
alter("PR85132","inc1");
build("PR85132");
}
+
+ // parameterization of generic aspects
+ public void testPr125405() {
+ initialiseProject("PR125405");
+ build("PR125405");
+ checkCompileWeaveCount(1,1);
+ alter("PR125405","inc1");
+ build("PR125405");
+ // "only abstract aspects can have type parameters"
+ checkForError("only abstract aspects can have type parameters");
+ alter("PR125405","inc2");
+ build("PR125405");
+ checkCompileWeaveCount(1,1);
+ assertTrue("Should be no errors, but got "+MyTaskListManager.getErrorMessages(),MyTaskListManager.getErrorMessages().size()==0);
+ }
public void testPr92837() {
initialiseProject("PR92837");
@@ -566,6 +581,15 @@ public class MultiProjectIncrementalTests extends AjdeInteractionTestbed {
}
}
+ public void checkForError(String anError) {
+ List messages = MyTaskListManager.getErrorMessages();
+ for (Iterator iter = messages.iterator(); iter.hasNext();) {
+ IMessage element = (IMessage) iter.next();
+ if (element.getMessage().indexOf(anError)!=-1) return;
+ }
+ fail("Didn't find the error message:\n'"+anError+"'.\nErrors that occurred:\n"+MyTaskListManager.getErrorMessages());
+ }
+
private void collectUpFiles(File location,File base,List collectionPoint) {
String contents[] = location.list();
if (contents==null) return;