author | jdv |
Tue, 09 Aug 2016 13:45:17 +0530 | |
changeset 40432 | 6a878eae7459 |
parent 37196 | f3f7367e8c53 |
child 40631 | ed82623d7831 |
permissions | -rw-r--r-- |
37196
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
1 |
/* |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
2 |
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
4 |
* |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
8 |
* |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
13 |
* accompanied this code). |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
14 |
* |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
18 |
* |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
21 |
* questions. |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
22 |
*/ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
23 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
24 |
/* |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
25 |
* @test |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
26 |
* @summary Test of method selection and resolution cases that |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
27 |
* generate IncompatibleClassChangeError |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
28 |
* @modules java.base/jdk.internal.org.objectweb.asm |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
29 |
* @library /runtime/SelectionResolution/classes |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
30 |
* @build selectionresolution.* |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
31 |
* @run main/othervm/timeout=500 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies InvokeInterfaceICCE |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
32 |
*/ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
33 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
34 |
import java.util.Arrays; |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
35 |
import java.util.Collection; |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
36 |
import java.util.EnumSet; |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
37 |
import selectionresolution.ClassData; |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
38 |
import selectionresolution.MethodData; |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
39 |
import selectionresolution.Result; |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
40 |
import selectionresolution.SelectionResolutionTest; |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
41 |
import selectionresolution.SelectionResolutionTestCase; |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
42 |
import selectionresolution.Template; |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
43 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
44 |
public class InvokeInterfaceICCE extends SelectionResolutionTest { |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
45 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
46 |
private static final SelectionResolutionTestCase.Builder initBuilder = |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
47 |
new SelectionResolutionTestCase.Builder(); |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
48 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
49 |
static { |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
50 |
initBuilder.setResult(Result.ICCE); |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
51 |
} |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
52 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
53 |
private static final Collection<TestGroup> testgroups = |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
54 |
Arrays.asList( |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
55 |
/* invokeinterface tests */ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
56 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
57 |
/* resolved method is static*/ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
58 |
/* Group 168: methodref = expected */ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
59 |
new TestGroup.Simple(initBuilder, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
60 |
Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
61 |
Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
62 |
EnumSet.of(MethodData.Access.PUBLIC), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
63 |
EnumSet.of(MethodData.Context.STATIC), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
64 |
EnumSet.of(ClassData.Package.SAME, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
65 |
ClassData.Package.DIFFERENT)), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
66 |
Template.OverrideAbstractExpectedIface, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
67 |
Template.MethodrefEqualsExpected, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
68 |
Template.IgnoredAbstract, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
69 |
Template.AllCallsiteCases, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
70 |
Template.IfaceMethodrefSelection), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
71 |
/* Group 169: methodref != expected */ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
72 |
new TestGroup.Simple(initBuilder, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
73 |
Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
74 |
Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
75 |
EnumSet.of(MethodData.Access.PUBLIC), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
76 |
EnumSet.of(MethodData.Context.STATIC), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
77 |
EnumSet.of(ClassData.Package.SAME, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
78 |
ClassData.Package.DIFFERENT)), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
79 |
Template.OverrideAbstractExpectedIface, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
80 |
Template.IfaceMethodrefNotEqualsExpected, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
81 |
Template.IgnoredAbstract, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
82 |
Template.AllCallsiteCases, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
83 |
Template.IfaceMethodrefSelection), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
84 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
85 |
/* methodref is a class */ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
86 |
/* Group 170: methodref = expected */ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
87 |
new TestGroup.Simple(initBuilder, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
88 |
Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
89 |
Template.ResultCombo(EnumSet.of(Template.Kind.CLASS), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
90 |
EnumSet.of(MethodData.Access.PUBLIC, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
91 |
MethodData.Access.PACKAGE, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
92 |
MethodData.Access.PROTECTED, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
93 |
MethodData.Access.PRIVATE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
94 |
EnumSet.of(MethodData.Context.STATIC), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
95 |
EnumSet.of(ClassData.Package.SAME, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
96 |
ClassData.Package.DIFFERENT)), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
97 |
Template.OverrideAbstractExpectedClass, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
98 |
Template.MethodrefEqualsExpected, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
99 |
Template.IgnoredAbstract, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
100 |
Template.AllCallsiteCases, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
101 |
Template.MethodrefSelectionResolvedIsClass), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
102 |
/* Group 171: methodref != expected, expected is class */ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
103 |
new TestGroup.Simple(initBuilder, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
104 |
Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
105 |
Template.ResultCombo(EnumSet.of(Template.Kind.CLASS), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
106 |
EnumSet.of(MethodData.Access.PUBLIC, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
107 |
MethodData.Access.PACKAGE, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
108 |
MethodData.Access.PROTECTED, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
109 |
MethodData.Access.PRIVATE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
110 |
EnumSet.of(MethodData.Context.STATIC), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
111 |
EnumSet.of(ClassData.Package.SAME, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
112 |
ClassData.Package.DIFFERENT)), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
113 |
Template.OverrideAbstractExpectedClass, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
114 |
Template.MethodrefNotEqualsExpectedClass, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
115 |
Template.IgnoredAbstract, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
116 |
Template.AllCallsiteCases, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
117 |
Template.MethodrefSelectionResolvedIsClass), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
118 |
/* Group 172: methodref != expected expected is interface */ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
119 |
new TestGroup.Simple(initBuilder, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
120 |
Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
121 |
Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
122 |
EnumSet.of(MethodData.Access.PUBLIC, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
123 |
MethodData.Access.PRIVATE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
124 |
EnumSet.of(MethodData.Context.STATIC), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
125 |
EnumSet.of(ClassData.Package.SAME, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
126 |
ClassData.Package.DIFFERENT)), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
127 |
Template.OverrideAbstractExpectedIface, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
128 |
Template.MethodrefNotEqualsExpectedIface, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
129 |
Template.IgnoredAbstract, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
130 |
Template.AllCallsiteCases, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
131 |
Template.MethodrefSelectionResolvedIsIface), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
132 |
/* Group 173: ambiguous resolution */ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
133 |
new TestGroup.Simple(initBuilder, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
134 |
Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
135 |
Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
136 |
EnumSet.of(MethodData.Access.PUBLIC), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
137 |
EnumSet.of(MethodData.Context.INSTANCE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
138 |
EnumSet.of(ClassData.Package.SAME, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
139 |
ClassData.Package.DIFFERENT)), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
140 |
Template.OverrideAbstractExpectedIface, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
141 |
Template.IfaceMethodrefAmbiguous, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
142 |
Template.IgnoredAbstract, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
143 |
Template.AllCallsiteCases, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
144 |
Template.IfaceMethodrefSelectionNoOverride), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
145 |
/* Group 174: ambiguous selection */ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
146 |
new TestGroup.Simple(initBuilder, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
147 |
Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
148 |
Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
149 |
EnumSet.of(MethodData.Access.PUBLIC), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
150 |
EnumSet.of(MethodData.Context.INSTANCE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
151 |
EnumSet.of(ClassData.Package.SAME, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
152 |
ClassData.Package.DIFFERENT)), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
153 |
Template.OverrideAbstractExpectedIface, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
154 |
Template.IfaceMethodrefNotEqualsExpected, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
155 |
Template.IgnoredAbstract, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
156 |
Template.AllCallsiteCases, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
157 |
Template.IfaceMethodrefAmbiguousResolvedIsIface), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
158 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
159 |
/* Group 175: private method in interface */ |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
160 |
new TestGroup.Simple(initBuilder, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
161 |
Template.SetInvoke(SelectionResolutionTestCase.InvokeInstruction.INVOKEINTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
162 |
Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
163 |
EnumSet.of(MethodData.Access.PRIVATE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
164 |
EnumSet.of(MethodData.Context.INSTANCE), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
165 |
EnumSet.of(ClassData.Package.SAME)), |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
166 |
Template.OverrideAbstractExpectedIface, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
167 |
Template.MethodrefEqualsExpected, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
168 |
Template.IgnoredAbstract, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
169 |
Template.CallsiteEqualsMethodref, |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
170 |
Template.IfaceMethodrefSelection) |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
171 |
); |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
172 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
173 |
private InvokeInterfaceICCE() { |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
174 |
super(testgroups); |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
175 |
} |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
176 |
|
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
177 |
public static void main(final String... args) { |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
178 |
new InvokeInterfaceICCE().run(); |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
179 |
} |
f3f7367e8c53
8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff
changeset
|
180 |
} |