aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test3/InvokeArray.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test3/InvokeArray.java')
-rw-r--r--src/test/test3/InvokeArray.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/test3/InvokeArray.java b/src/test/test3/InvokeArray.java
new file mode 100644
index 00000000..fc2eb308
--- /dev/null
+++ b/src/test/test3/InvokeArray.java
@@ -0,0 +1,15 @@
+package test3;
+
+class InvokeArrayEle {
+ String name;
+}
+
+public class InvokeArray {
+ public int test() {
+ return doit(new InvokeArrayEle[3]);
+ }
+ public int doit(InvokeArrayEle[] ae) {
+ Object[] ae2 = (Object[])ae.clone();
+ return ae2.length;
+ }
+} \ No newline at end of file