From 782ade25e6d68caf361f51a1e040edbd6855842b Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 3 Oct 2006 15:00:34 +0000 Subject: test and fix for 156904: missing type warning then it matches anyway --- tests/bugs153/pr156904/inDiffPkgAndImport/A.aj | 12 ++++++++++++ tests/bugs153/pr156904/inDiffPkgAndImport/Outer.java | 8 ++++++++ tests/bugs153/pr156904/inDiffPkgWithoutImport/A.aj | 10 ++++++++++ .../pr156904/inDiffPkgWithoutImport/Outer.java | 8 ++++++++ tests/bugs153/pr156904/inSameFile/A.aj | 19 +++++++++++++++++++ tests/bugs153/pr156904/inSamePkg/A.aj | 11 +++++++++++ tests/bugs153/pr156904/inSamePkg/Outer.java | 10 ++++++++++ 7 files changed, 78 insertions(+) create mode 100644 tests/bugs153/pr156904/inDiffPkgAndImport/A.aj create mode 100644 tests/bugs153/pr156904/inDiffPkgAndImport/Outer.java create mode 100644 tests/bugs153/pr156904/inDiffPkgWithoutImport/A.aj create mode 100644 tests/bugs153/pr156904/inDiffPkgWithoutImport/Outer.java create mode 100644 tests/bugs153/pr156904/inSameFile/A.aj create mode 100644 tests/bugs153/pr156904/inSamePkg/A.aj create mode 100644 tests/bugs153/pr156904/inSamePkg/Outer.java (limited to 'tests/bugs153') diff --git a/tests/bugs153/pr156904/inDiffPkgAndImport/A.aj b/tests/bugs153/pr156904/inDiffPkgAndImport/A.aj new file mode 100644 index 000000000..99fa65826 --- /dev/null +++ b/tests/bugs153/pr156904/inDiffPkgAndImport/A.aj @@ -0,0 +1,12 @@ +package pkg; + +import pkg1.*; + +public aspect A { + + pointcut innerpointcut() : execution( * Outer.myMethod() ); + + before() : innerpointcut() { + System.out.println( "executing!" ); + } +} diff --git a/tests/bugs153/pr156904/inDiffPkgAndImport/Outer.java b/tests/bugs153/pr156904/inDiffPkgAndImport/Outer.java new file mode 100644 index 000000000..df7256a0d --- /dev/null +++ b/tests/bugs153/pr156904/inDiffPkgAndImport/Outer.java @@ -0,0 +1,8 @@ +package pkg1; + +class Outer { + + private void myMethod(){ + } + +} diff --git a/tests/bugs153/pr156904/inDiffPkgWithoutImport/A.aj b/tests/bugs153/pr156904/inDiffPkgWithoutImport/A.aj new file mode 100644 index 000000000..bb158a517 --- /dev/null +++ b/tests/bugs153/pr156904/inDiffPkgWithoutImport/A.aj @@ -0,0 +1,10 @@ +package pkg; + +public aspect A { + + pointcut innerpointcut() : execution( * Outer.myMethod() ); + + before() : innerpointcut() { + System.out.println( "executing!" ); + } +} diff --git a/tests/bugs153/pr156904/inDiffPkgWithoutImport/Outer.java b/tests/bugs153/pr156904/inDiffPkgWithoutImport/Outer.java new file mode 100644 index 000000000..df7256a0d --- /dev/null +++ b/tests/bugs153/pr156904/inDiffPkgWithoutImport/Outer.java @@ -0,0 +1,8 @@ +package pkg1; + +class Outer { + + private void myMethod(){ + } + +} diff --git a/tests/bugs153/pr156904/inSameFile/A.aj b/tests/bugs153/pr156904/inSameFile/A.aj new file mode 100644 index 000000000..ab0462065 --- /dev/null +++ b/tests/bugs153/pr156904/inSameFile/A.aj @@ -0,0 +1,19 @@ +package pkg; + +public aspect A { + + pointcut innerpointcut() : execution( * Outer.Inner.myMethod() ); + + before() : innerpointcut() { + System.out.println( "executing!" ); + } + +} + +class Outer { + + private class Inner{ + private void myMethod(){ + } + } +} diff --git a/tests/bugs153/pr156904/inSamePkg/A.aj b/tests/bugs153/pr156904/inSamePkg/A.aj new file mode 100644 index 000000000..cff99d7c8 --- /dev/null +++ b/tests/bugs153/pr156904/inSamePkg/A.aj @@ -0,0 +1,11 @@ +package pkg; + +public aspect A { + + pointcut innerpointcut() : execution( * Outer.Inner.myMethod() ); + + before() : innerpointcut() { + System.out.println( "executing!" ); + } + +} diff --git a/tests/bugs153/pr156904/inSamePkg/Outer.java b/tests/bugs153/pr156904/inSamePkg/Outer.java new file mode 100644 index 000000000..09913935d --- /dev/null +++ b/tests/bugs153/pr156904/inSamePkg/Outer.java @@ -0,0 +1,10 @@ +package pkg; + +class Outer { + + private class Inner{ + private void myMethod(){ + } + } + +} -- cgit v1.2.3