aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-10-01 16:00:43 +0000
committerwisberg <wisberg>2003-10-01 16:00:43 +0000
commit64e450959c22af70bf054173004d61713c212acc (patch)
treea56ad37a9f3af19c7395f7b8d2dd07a60a3c0ad8 /tests
parent0b22496668700a4169bbf984e4ef63283b1add65 (diff)
downloadaspectj-64e450959c22af70bf054173004d61713c212acc.tar.gz
aspectj-64e450959c22af70bf054173004d61713c212acc.zip
added back-links to newly-submitted bug 43972
Diffstat (limited to 'tests')
-rw-r--r--tests/ajcTestsFailing.xml1
-rw-r--r--tests/bugs/interfaceDefinition/Main.java1
-rw-r--r--tests/bugs/interfaceDefinition/build.xml13
3 files changed, 10 insertions, 5 deletions
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml
index b5be2713d..1ae30e2cb 100644
--- a/tests/ajcTestsFailing.xml
+++ b/tests/ajcTestsFailing.xml
@@ -124,6 +124,7 @@
</ajc-test>
<ajc-test dir="bugs/interfaceDefinition"
+ pr="43972"
title="Use class implementing interface via aspect">
<compile
files="pack/DefineInterface.java,
diff --git a/tests/bugs/interfaceDefinition/Main.java b/tests/bugs/interfaceDefinition/Main.java
index b9767acef..e4010258a 100644
--- a/tests/bugs/interfaceDefinition/Main.java
+++ b/tests/bugs/interfaceDefinition/Main.java
@@ -1,4 +1,5 @@
+/** @testcase PR#43972 Use class implementing interface via aspect */
public class Main implements pack.MyInterface {
public static void main(String[] args) {
new Main().m();
diff --git a/tests/bugs/interfaceDefinition/build.xml b/tests/bugs/interfaceDefinition/build.xml
index 041f3f5c4..6f04d98cb 100644
--- a/tests/bugs/interfaceDefinition/build.xml
+++ b/tests/bugs/interfaceDefinition/build.xml
@@ -2,10 +2,13 @@
<project name="interfaceDefinition" default="all" basedir=".">
<target name="info">
<echo>
-This reproduces a bug found on the mailing list by Eric Jain.
-When the implementation of a method is defined by an aspect,
-the implementing type does not appear to javac to have
-the method.
+This reproduces bug 43972.
+When the implementation of an interface-declared method is defined
+by an aspect, the implementing type does not appear to javac to have
+the method. To run, build the tree as usual or define aspectj.lib.dir:
+
+ ant -Daspectj.lib.dir="c:\aspectj-1.1.1\lib"
+
</echo>
</target>
<target name="init">
@@ -27,7 +30,6 @@ the method.
<target name="init.taskdefs" depends="init"
unless="taskdefs.init">
- <!-- sets name of new task to iajc, old task to ajc -->
<taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
<classpath>
<pathelement path="${aspectjtools.jar}"/>
@@ -66,6 +68,7 @@ the method.
<pathelement path="${classes.dir}"/>
</classpath>
</java>
+ <delete dir="${classes.dir}"/>
</target>
</project> \ No newline at end of file