diff options
author | aclement <aclement> | 2005-11-01 16:59:40 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-01 16:59:40 +0000 |
commit | 32ed1528933aac1798b285b5af22de502fccc496 (patch) | |
tree | f3587c65e2fd322a36b1c5bd5268963d13f156b9 /tests/bugs150 | |
parent | 98d8a582fcc18228e5b776532ba522fa96a6b563 (diff) | |
download | aspectj-32ed1528933aac1798b285b5af22de502fccc496.tar.gz aspectj-32ed1528933aac1798b285b5af22de502fccc496.zip |
pr105479: reorganized testcases.
Diffstat (limited to 'tests/bugs150')
-rw-r--r-- | tests/bugs150/pr105479/case1/Driver.java (renamed from tests/bugs150/pr105479/Driver.java) | 0 | ||||
-rw-r--r-- | tests/bugs150/pr105479/case1/ReturnTypeTest.aj (renamed from tests/bugs150/pr105479/ReturnTypeTest.aj) | 0 | ||||
-rw-r--r-- | tests/bugs150/pr105479/case1/ReturnTypeTester.java (renamed from tests/bugs150/pr105479/ReturnTypeTester.java) | 0 | ||||
-rw-r--r-- | tests/bugs150/pr105479/case2/ReturnTypeTest.java | 12 | ||||
-rw-r--r-- | tests/bugs150/pr105479/case2/ReturnTypeTester.java | 23 |
5 files changed, 35 insertions, 0 deletions
diff --git a/tests/bugs150/pr105479/Driver.java b/tests/bugs150/pr105479/case1/Driver.java index 6bc4b1bfc..6bc4b1bfc 100644 --- a/tests/bugs150/pr105479/Driver.java +++ b/tests/bugs150/pr105479/case1/Driver.java diff --git a/tests/bugs150/pr105479/ReturnTypeTest.aj b/tests/bugs150/pr105479/case1/ReturnTypeTest.aj index 108c5319d..108c5319d 100644 --- a/tests/bugs150/pr105479/ReturnTypeTest.aj +++ b/tests/bugs150/pr105479/case1/ReturnTypeTest.aj diff --git a/tests/bugs150/pr105479/ReturnTypeTester.java b/tests/bugs150/pr105479/case1/ReturnTypeTester.java index b26445e1c..b26445e1c 100644 --- a/tests/bugs150/pr105479/ReturnTypeTester.java +++ b/tests/bugs150/pr105479/case1/ReturnTypeTester.java diff --git a/tests/bugs150/pr105479/case2/ReturnTypeTest.java b/tests/bugs150/pr105479/case2/ReturnTypeTest.java new file mode 100644 index 000000000..113f3a602 --- /dev/null +++ b/tests/bugs150/pr105479/case2/ReturnTypeTest.java @@ -0,0 +1,12 @@ +public aspect ReturnTypeTest { + private interface Test { + Object getId(); + int hashCode(); + } + + public int Test.hashCode() { + return getId().hashCode(); + } + + declare parents : ReturnTypeTester implements Test; +} diff --git a/tests/bugs150/pr105479/case2/ReturnTypeTester.java b/tests/bugs150/pr105479/case2/ReturnTypeTester.java new file mode 100644 index 000000000..bdd9612d9 --- /dev/null +++ b/tests/bugs150/pr105479/case2/ReturnTypeTester.java @@ -0,0 +1,23 @@ +import java.util.HashSet; +import java.util.Set; + +public class ReturnTypeTester { + static Set<ReturnTypeTester> set = new HashSet<ReturnTypeTester>(); + static { + ReturnTypeTester tester = new ReturnTypeTester(); + set.add(tester); + } + + public String getId() { + return "id"; + } + + public static void main(String []argv) { + ReturnTypeTester rtt = new ReturnTypeTester(); + System.err.println("xxx"); + rtt.hashCode(); + System.err.println("yyy"); + rtt.getId(); + System.err.println("zzz"); + } +} |