From 5f50e8fec2ed81d2def2fce3a14f57dec2e4c1dc Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 17 Jul 2009 21:29:57 +0000 Subject: [PATCH] 283657: fix --- .../pr283657/base/src/Aspect.java | 14 ++++++++ .../pr283864/base/src/Failing.java | 35 +++++++++++++++++++ .../tools/MultiProjectIncrementalTests.java | 26 ++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 tests/multiIncremental/pr283657/base/src/Aspect.java create mode 100644 tests/multiIncremental/pr283864/base/src/Failing.java diff --git a/tests/multiIncremental/pr283657/base/src/Aspect.java b/tests/multiIncremental/pr283657/base/src/Aspect.java new file mode 100644 index 000000000..2bb1cbb43 --- /dev/null +++ b/tests/multiIncremental/pr283657/base/src/Aspect.java @@ -0,0 +1,14 @@ +public aspect Aspect { + int Target.foo = 9; + + void Target.foo() { + + } +} + + +class Target { + +} + + diff --git a/tests/multiIncremental/pr283864/base/src/Failing.java b/tests/multiIncremental/pr283864/base/src/Failing.java new file mode 100644 index 000000000..bb50b8664 --- /dev/null +++ b/tests/multiIncremental/pr283864/base/src/Failing.java @@ -0,0 +1,35 @@ +public aspect Failing { + pointcut failingPointcut() : execution(* foo*(..)); + + after() returning() : failingPointcut() + { + System.out.println("hit"); + } +} + +class X { + // Pointcut match highlighted +// void foo() {} + + // Pointcut match highlighted +// void foo1(T x) {} + + // Pointcut not highlighted + void foo2(T[] x) {} + + // Pointcut not highlighted +// void foo3(T... x) {} + + // Pointcut highlighted +// T foo3() { return null; } + + // Pointcut highlighted +// T[] foo4() { return null; } + + public static void main(String[] args) { + X x = new X(); + + x.foo2(null); + } +} + diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index e4261309d..ee2b22be4 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -150,6 +150,32 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa assertNotNull(rels); } + // public void testArraysGenerics() throws Exception { + // String p = "pr283864"; + // initialiseProject(p); + // build(p); + // printModel(p); + // // IRelationshipMap irm = getModelFor(p).getRelationshipMap(); + // // List rels = irm.get("=pr280383