aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr104024.aj
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-31 14:15:45 +0000
committeracolyer <acolyer>2005-08-31 14:15:45 +0000
commitf2af562611c7e060ebd71b9b29d6766ffcb9c727 (patch)
treea7bad3a4d1e826b17ded5752292c06240ee6e845 /tests/bugs150/pr104024.aj
parenta0ab747e10653a76abf8ddf839fa6b830e65acb1 (diff)
downloadaspectj-f2af562611c7e060ebd71b9b29d6766ffcb9c727.tar.gz
aspectj-f2af562611c7e060ebd71b9b29d6766ffcb9c727.zip
tests for pr104024, inner class constructed inline and passed as argument to varargs method
Diffstat (limited to 'tests/bugs150/pr104024.aj')
-rw-r--r--tests/bugs150/pr104024.aj14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/bugs150/pr104024.aj b/tests/bugs150/pr104024.aj
new file mode 100644
index 000000000..98ac76412
--- /dev/null
+++ b/tests/bugs150/pr104024.aj
@@ -0,0 +1,14 @@
+class Outer {
+ public class Inner {}
+}
+
+
+public class pr104024 {
+ public void varargs(Object... varargs) {}
+
+ public void test() {
+ Outer.Inner inner = new Outer().new Inner();
+ varargs(inner); // works
+ varargs(new Outer().new Inner()); // crashes
+ }
+} \ No newline at end of file