From: jhugunin Date: Sat, 12 Apr 2003 00:47:38 +0000 (+0000) Subject: fix and test for Bugzilla Bug 36110 X-Git-Tag: V1_1_0_RC2~177 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3fa54faf3fd88bc089994e2acd0b2c4ef642bb3;p=aspectj.git fix and test for Bugzilla Bug 36110 IllegalAccessError while accessing introduced variable / 1.1rc1 --- 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 @@ + + + + + + + +