瀏覽代碼

tests for Huff's fix for 102746 - not hooked up b/c harness manages classpath.

tags/PRE_ANDY
wisberg 19 年之前
父節點
當前提交
178760115e
共有 3 個文件被更改,包括 24 次插入0 次删除
  1. 8
    0
      tests/bugs/pr102746/PR102746.java
  2. 9
    0
      tests/bugs/pr102746/PR102746.txt
  3. 7
    0
      tests/bugs/pr102746/lib/Lib.java

+ 8
- 0
tests/bugs/pr102746/PR102746.java 查看文件

@@ -0,0 +1,8 @@

public class PR102746 {
public static void main(String[] args) {
if (!("hello".equals(lib.Lib.hello()))) {
throw new Error("no hello");
}
}
}

+ 9
- 0
tests/bugs/pr102746/PR102746.txt 查看文件

@@ -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.

+ 7
- 0
tests/bugs/pr102746/lib/Lib.java 查看文件

@@ -0,0 +1,7 @@
package lib;

public class Lib {
public static String hello() {
return "hello";
}
}

Loading…
取消
儲存