]> source.dussan.org Git - aspectj.git/commitdiff
tests for Huff's fix for 102746 - not hooked up b/c harness manages classpath.
authorwisberg <wisberg>
Mon, 11 Jul 2005 23:52:53 +0000 (23:52 +0000)
committerwisberg <wisberg>
Mon, 11 Jul 2005 23:52:53 +0000 (23:52 +0000)
tests/bugs/pr102746/PR102746.java [new file with mode: 0644]
tests/bugs/pr102746/PR102746.txt [new file with mode: 0644]
tests/bugs/pr102746/lib/Lib.java [new file with mode: 0644]

diff --git a/tests/bugs/pr102746/PR102746.java b/tests/bugs/pr102746/PR102746.java
new file mode 100644 (file)
index 0000000..ceb42ab
--- /dev/null
@@ -0,0 +1,8 @@
+
+public class PR102746 {
+       public static void main(String[] args) {
+               if (!("hello".equals(lib.Lib.hello()))) {
+                       throw new Error("no hello");
+               }
+       }
+}
\ No newline at end of file
diff --git a/tests/bugs/pr102746/PR102746.txt b/tests/bugs/pr102746/PR102746.txt
new file mode 100644 (file)
index 0000000..5dbfbdb
--- /dev/null
@@ -0,0 +1,9 @@
+
+Would test with 
+
+    <ajc-test dir="bugs/pr102746" title="log to file with -log in classpath">
+        <compile files="lib/Lib.java" outjar="foo-logging.jar"/>
+        <compile files="PR102746.java" classpath="foo-logging.jar"/>
+    </ajc-test>
+
+except that the harness is I think snooping for foo-logging.jar wrong.
\ No newline at end of file
diff --git a/tests/bugs/pr102746/lib/Lib.java b/tests/bugs/pr102746/lib/Lib.java
new file mode 100644 (file)
index 0000000..ef5c29d
--- /dev/null
@@ -0,0 +1,7 @@
+package lib;
+
+public class Lib {
+    public static String hello() {
+        return "hello";
+    }
+}
\ No newline at end of file