From c7584070e1ca1e4f1899f4b62e2c193d4d43c206 Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 6 Aug 2003 01:53:16 +0000 Subject: passing tests for interface libraries. The behavior might be wrong (i.e., some should fail) -- confirming on the list. --- tests/new/interfaceLibrary/Client.java | 9 +++ tests/new/interfaceLibrary/LibraryAspect.java | 6 ++ tests/new/interfaceLibrary/aspectOnly.jar | Bin 0 -> 1027 bytes .../new/interfaceLibrary/aspectedInterfaceOnly.jar | Bin 0 -> 312 bytes .../aspectedInterfaceOnlyBinary.jar | Bin 0 -> 312 bytes tests/new/interfaceLibrary/build.xml | 83 +++++++++++++++++++++ tests/new/interfaceLibrary/interfaceOnly.jar | Bin 0 -> 263 bytes .../new/interfaceLibrary/lib/LibraryInterface.java | 6 ++ 8 files changed, 104 insertions(+) create mode 100644 tests/new/interfaceLibrary/Client.java create mode 100644 tests/new/interfaceLibrary/LibraryAspect.java create mode 100644 tests/new/interfaceLibrary/aspectOnly.jar create mode 100644 tests/new/interfaceLibrary/aspectedInterfaceOnly.jar create mode 100644 tests/new/interfaceLibrary/aspectedInterfaceOnlyBinary.jar create mode 100644 tests/new/interfaceLibrary/build.xml create mode 100644 tests/new/interfaceLibrary/interfaceOnly.jar create mode 100644 tests/new/interfaceLibrary/lib/LibraryInterface.java (limited to 'tests/new') diff --git a/tests/new/interfaceLibrary/Client.java b/tests/new/interfaceLibrary/Client.java new file mode 100644 index 000000000..e53bfff21 --- /dev/null +++ b/tests/new/interfaceLibrary/Client.java @@ -0,0 +1,9 @@ + + +public class Client { + public static void main(String[] a) { + new C().run(); + } +} + +class C implements lib.LibraryInterface {} \ No newline at end of file diff --git a/tests/new/interfaceLibrary/LibraryAspect.java b/tests/new/interfaceLibrary/LibraryAspect.java new file mode 100644 index 000000000..34a6a36b9 --- /dev/null +++ b/tests/new/interfaceLibrary/LibraryAspect.java @@ -0,0 +1,6 @@ + +aspect LibraryAspect { + public void lib.LibraryInterface.run() { + System.err.println("LibraryAspect-defined run() for " + this); + } +} \ No newline at end of file diff --git a/tests/new/interfaceLibrary/aspectOnly.jar b/tests/new/interfaceLibrary/aspectOnly.jar new file mode 100644 index 000000000..4aaffb645 Binary files /dev/null and b/tests/new/interfaceLibrary/aspectOnly.jar differ diff --git a/tests/new/interfaceLibrary/aspectedInterfaceOnly.jar b/tests/new/interfaceLibrary/aspectedInterfaceOnly.jar new file mode 100644 index 000000000..9cb969b9d Binary files /dev/null and b/tests/new/interfaceLibrary/aspectedInterfaceOnly.jar differ diff --git a/tests/new/interfaceLibrary/aspectedInterfaceOnlyBinary.jar b/tests/new/interfaceLibrary/aspectedInterfaceOnlyBinary.jar new file mode 100644 index 000000000..9cb969b9d Binary files /dev/null and b/tests/new/interfaceLibrary/aspectedInterfaceOnlyBinary.jar differ diff --git a/tests/new/interfaceLibrary/build.xml b/tests/new/interfaceLibrary/build.xml new file mode 100644 index 000000000..d23e49e38 --- /dev/null +++ b/tests/new/interfaceLibrary/build.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/new/interfaceLibrary/interfaceOnly.jar b/tests/new/interfaceLibrary/interfaceOnly.jar new file mode 100644 index 000000000..ede6fc868 Binary files /dev/null and b/tests/new/interfaceLibrary/interfaceOnly.jar differ diff --git a/tests/new/interfaceLibrary/lib/LibraryInterface.java b/tests/new/interfaceLibrary/lib/LibraryInterface.java new file mode 100644 index 000000000..a712c5a08 --- /dev/null +++ b/tests/new/interfaceLibrary/lib/LibraryInterface.java @@ -0,0 +1,6 @@ + +package lib; + +public interface LibraryInterface { +// void run(); +} \ No newline at end of file -- cgit v1.2.3