diff options
author | aclement <aclement> | 2005-10-04 13:37:01 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-10-04 13:37:01 +0000 |
commit | 32a02ec2a3e15651249d5d7cc5f63fa409468b2a (patch) | |
tree | 99219854182c1d1cd492f3c27eeb4ce75673448c /tests/bugs150 | |
parent | 1ee6fbfbdc453e0d9ba2ee1e2951499f0fb9fef3 (diff) | |
download | aspectj-32a02ec2a3e15651249d5d7cc5f63fa409468b2a.tar.gz aspectj-32a02ec2a3e15651249d5d7cc5f63fa409468b2a.zip |
test and fix for pr110906: vararg ITDs
Diffstat (limited to 'tests/bugs150')
-rw-r--r-- | tests/bugs150/pr110906.aj | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs150/pr110906.aj b/tests/bugs150/pr110906.aj new file mode 100644 index 000000000..b7f7446e0 --- /dev/null +++ b/tests/bugs150/pr110906.aj @@ -0,0 +1,25 @@ +public class pr110906 { + + public static void main(String []argv) { + new pr110906().printNames(new Object[]{"a","b","c"}); + new pr110906().printNames("a","b","c"); // should be allowed!! + new pr110906().printNames2("a","b","c"); // should be allowed!! + } + +} + +aspect A { + + private interface HasName {} + + declare parents: (pr110906) implements HasName; + + public void HasName.printNames(Object... names) { + System.out.println(names[0]); + } + + public void HasName.printNames2(String... names) { + System.out.println(names[0]); + } + +} |