diff options
author | jhugunin <jhugunin> | 2003-04-12 00:47:38 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-04-12 00:47:38 +0000 |
commit | a3fa54faf3fd88bc089994e2acd0b2c4ef642bb3 (patch) | |
tree | b5d80158cf1bf294015af6816c5452d8f10fa4b7 /tests/bugs | |
parent | 7cafac53213d0f7a7dbeb14cf30f0a2eb2090d40 (diff) | |
download | aspectj-a3fa54faf3fd88bc089994e2acd0b2c4ef642bb3.tar.gz aspectj-a3fa54faf3fd88bc089994e2acd0b2c4ef642bb3.zip |
fix and test for Bugzilla Bug 36110
IllegalAccessError while accessing introduced variable / 1.1rc1
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/interSpecials/p1/C.java | 4 | ||||
-rw-r--r-- | tests/bugs/interSpecials/p2/A1.java | 15 | ||||
-rw-r--r-- | tests/bugs/interSpecials/p2/A2.java | 14 |
3 files changed, 33 insertions, 0 deletions
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); + } +} |