aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-04-12 00:47:38 +0000
committerjhugunin <jhugunin>2003-04-12 00:47:38 +0000
commita3fa54faf3fd88bc089994e2acd0b2c4ef642bb3 (patch)
treeb5d80158cf1bf294015af6816c5452d8f10fa4b7 /tests
parent7cafac53213d0f7a7dbeb14cf30f0a2eb2090d40 (diff)
downloadaspectj-a3fa54faf3fd88bc089994e2acd0b2c4ef642bb3.tar.gz
aspectj-a3fa54faf3fd88bc089994e2acd0b2c4ef642bb3.zip
fix and test for Bugzilla Bug 36110
IllegalAccessError while accessing introduced variable / 1.1rc1
Diffstat (limited to 'tests')
-rw-r--r--tests/ajcTests.xml15
-rw-r--r--tests/bugs/interSpecials/p1/C.java4
-rw-r--r--tests/bugs/interSpecials/p2/A1.java15
-rw-r--r--tests/bugs/interSpecials/p2/A2.java14
-rw-r--r--tests/jimTests.xml10
5 files changed, 56 insertions, 2 deletions
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 @@
</ajc-test>
<ajc-test dir="bugs" pr="28703" title="assert and pertarget crashes compiler">
- <compile files="EnsureOverriding.java" options="-1.4"/>
+ <compile files="EnsureOverriding.java" options="-source14"/>
<run class="EnsureOverriding" vm="1.4"/>
</ajc-test>
@@ -5796,7 +5796,6 @@
</compile>
</ajc-test>
-
<ajc-test dir="options/injars/simple" pr="35865"
title="options -injars checking declare parents interactions">
<compile files="DecParents.java,main.jar"
@@ -5804,4 +5803,16 @@
<run class="DecParents"/>
</ajc-test>
+ <ajc-test dir="bugs/interSpecials" title="IllegalAccessError while accessing introduced variable / 1.1rc1"
+ pr="36110">
+ <compile files="p1/C.java,p2/A1.java"/>
+ <run class="p2.A1"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs/interSpecials" title="testing that assert works like .class"
+ pr="36110">
+ <compile files="p1/C.java,p2/A2.java" options="-source14"/>
+ <run class="p2.A2" vm="1.4"/>
+ </ajc-test>
+
</suite>
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 @@
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
<suite>
+ <ajc-test dir="bugs/interSpecials" title="IllegalAccessError while accessing introduced variable / 1.1rc1"
+ pr="36110">
+ <compile files="p1/C.java,p2/A1.java"/>
+ <run class="p2.A1"/>
+ </ajc-test>
+ <ajc-test dir="bugs/interSpecials" title="testing that assert works like .class"
+ pr="36110">
+ <compile files="p1/C.java,p2/A2.java" options="-source14"/>
+ <run class="p2.A2" vm="1.4"/>
+ </ajc-test>
<!--
<ajc-test dir="new" pr="885"