4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.lang.annotation.*;
25 import java.lang.reflect.*;
26 import java.util.*;
27
28 abstract class TestArrayCopyUtils {
29 public enum ArraySrc {
30 SMALL,
31 LARGE,
32 ZERO
33 }
34
35 public enum ArrayDst {
36 NONE,
37 NEW,
38 SRC
39 }
40
41 static class A {
42 }
43
44 static class B extends A {
45 }
46
47 static final A[] small_a_src = new A[5];
|
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 package compiler.arraycopy;
25
26 import java.lang.annotation.Retention;
27 import java.lang.annotation.RetentionPolicy;
28 import java.lang.reflect.Method;
29 import java.lang.reflect.Modifier;
30 import java.util.HashMap;
31
32 abstract class TestArrayCopyUtils {
33 public enum ArraySrc {
34 SMALL,
35 LARGE,
36 ZERO
37 }
38
39 public enum ArrayDst {
40 NONE,
41 NEW,
42 SRC
43 }
44
45 static class A {
46 }
47
48 static class B extends A {
49 }
50
51 static final A[] small_a_src = new A[5];
|