diff options
author | acolyer <acolyer> | 2005-03-23 12:48:10 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-03-23 12:48:10 +0000 |
commit | 13a88313eac9573418a047f59d2b8e8e5bbb8c1c (patch) | |
tree | c8f31335d9df164bded347a335f310243c9e4173 /tests/java5 | |
parent | 8c80fde9d4d3c7c2d913da377f8fb2de6e4bf854 (diff) | |
download | aspectj-13a88313eac9573418a047f59d2b8e8e5bbb8c1c.tar.gz aspectj-13a88313eac9573418a047f59d2b8e8e5bbb8c1c.zip |
test and fix for handling a *... varargs pattern
Diffstat (limited to 'tests/java5')
-rw-r--r-- | tests/java5/varargs/StarVarargsPattern.aj | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/java5/varargs/StarVarargsPattern.aj b/tests/java5/varargs/StarVarargsPattern.aj new file mode 100644 index 000000000..ecaae4a44 --- /dev/null +++ b/tests/java5/varargs/StarVarargsPattern.aj @@ -0,0 +1,11 @@ +public aspect StarVarargsPattern { + + declare warning : execution(* *(..,*...)) : "you used a varargs signature"; + + void foo(Object... objs) {} // DW L 5 + + void bar(String s, String... ss) {} // DW L7 + + void goo(Integer[] is) {} + +}
\ No newline at end of file |