From a3fa54faf3fd88bc089994e2acd0b2c4ef642bb3 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Sat, 12 Apr 2003 00:47:38 +0000 Subject: [PATCH] fix and test for Bugzilla Bug 36110 IllegalAccessError while accessing introduced variable / 1.1rc1 --- tests/ajcTests.xml | 15 +++++++++++++-- tests/bugs/interSpecials/p1/C.java | 4 ++++ tests/bugs/interSpecials/p2/A1.java | 15 +++++++++++++++ tests/bugs/interSpecials/p2/A2.java | 14 ++++++++++++++ tests/jimTests.xml | 10 ++++++++++ 5 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 tests/bugs/interSpecials/p1/C.java create mode 100644 tests/bugs/interSpecials/p2/A1.java create mode 100644 tests/bugs/interSpecials/p2/A2.java diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index 6d4fd67b9..6fd1413fa 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -5417,7 +5417,7 @@ - + @@ -5796,7 +5796,6 @@ - + + + + + + + + + + diff --git a/tests/bugs/interSpecials/p1/C.java b/tests/bugs/interSpecials/p1/C.java new file mode 100644 index 000000000..472afd808 --- /dev/null +++ b/tests/bugs/interSpecials/p1/C.java @@ -0,0 +1,4 @@ +package p1; + +public class C { +} \ No newline at end of file diff --git a/tests/bugs/interSpecials/p2/A1.java b/tests/bugs/interSpecials/p2/A1.java new file mode 100644 index 000000000..4a84e592d --- /dev/null +++ b/tests/bugs/interSpecials/p2/A1.java @@ -0,0 +1,15 @@ +package p2; + +import p1.C; + +public class A1 { + public static void main(String[] args) { + new C().foo(); + } +} + +aspect InterClass { + void C.foo() { + System.out.println("class: " + C.class); + } +} \ No newline at end of file diff --git a/tests/bugs/interSpecials/p2/A2.java b/tests/bugs/interSpecials/p2/A2.java new file mode 100644 index 000000000..a29f3d5b9 --- /dev/null +++ b/tests/bugs/interSpecials/p2/A2.java @@ -0,0 +1,14 @@ +package p2; + +import p1.C; +public class A2 { + public static void main(String[] args) { + new C().foo(); + } +} + +aspect InterClass { + void C.foo() { + assert(C.class != null); + } +} diff --git a/tests/jimTests.xml b/tests/jimTests.xml index cc3257d9f..3f20da53f 100644 --- a/tests/jimTests.xml +++ b/tests/jimTests.xml @@ -1,6 +1,16 @@ + + + + + + + +