From: aclement Date: Thu, 30 Oct 2008 15:45:15 +0000 (+0000) Subject: 252702: declare parents in model X-Git-Tag: V1_6_3rc1~119 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=394ad33a0cba7c7254602d2ccd25e15decd03c2e;p=aspectj.git 252702: declare parents in model --- diff --git a/tests/multiIncremental/decps/base/src/a/A.java b/tests/multiIncremental/decps/base/src/a/A.java new file mode 100644 index 000000000..f1ba48d1a --- /dev/null +++ b/tests/multiIncremental/decps/base/src/a/A.java @@ -0,0 +1,8 @@ +package a; +import java.io.*; + +public aspect A { + declare parents: p.C implements Serializable,Goo; +} + +interface Goo {} diff --git a/tests/multiIncremental/decps/base/src/p/C.java b/tests/multiIncremental/decps/base/src/p/C.java new file mode 100644 index 000000000..623eeda24 --- /dev/null +++ b/tests/multiIncremental/decps/base/src/p/C.java @@ -0,0 +1,4 @@ +package p; + +class C { +} diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index 01e34e86b..3e81e98e0 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -48,6 +48,27 @@ import org.aspectj.util.FileUtil; */ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementalAjdeInteractionTestbed { + public void testDeclareParentsInModel() { + String p = "decps"; + initialiseProject(p); + build(p); + IProgramElement decp = getModelFor(p).getHierarchy().findElementForHandle("=decps