hotspot/test/runtime/SelectionResolution/InvokeSpecialSuccessTest.java
author ctornqvi
Fri, 19 Aug 2016 10:06:30 -0400
changeset 40631 ed82623d7831
parent 37196 f3f7367e8c53
permissions -rw-r--r--
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder Reviewed-by: coleenp, gtriantafill, mseledtsov, iignatyev, dholmes, dsamersoff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 InvokeSpecialSuccessTest
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
 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies InvokeSpecialSuccessTest
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    31
 */
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
import java.util.Arrays;
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    34
import java.util.Collection;
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    35
import java.util.EnumSet;
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    36
import selectionresolution.ClassData;
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    37
import selectionresolution.MethodData;
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    38
import selectionresolution.SelectionResolutionTest;
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    39
import selectionresolution.SelectionResolutionTestCase;
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    40
import selectionresolution.Template;
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    41
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    42
public class InvokeSpecialSuccessTest extends SelectionResolutionTest {
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
    private static final SelectionResolutionTestCase.Builder initBuilder =
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    45
        new SelectionResolutionTestCase.Builder();
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    46
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    47
    static {
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    48
        initBuilder.invoke = SelectionResolutionTestCase.InvokeInstruction.INVOKESPECIAL;
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    49
    }
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    50
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    51
    private static final Collection<TestGroup> testgroups =
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    52
        Arrays.asList(
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    53
                /* Group 46: callsite = methodref = expected */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    54
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    55
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    56
                                             EnumSet.of(MethodData.Access.PUBLIC,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    57
                                                        MethodData.Access.PACKAGE,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    58
                                                        MethodData.Access.PROTECTED,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    59
                                                        MethodData.Access.PRIVATE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    60
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    61
                                             EnumSet.of(ClassData.Package.SAME)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    62
                        Template.OverrideAbstractExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    63
                        Template.MethodrefEqualsExpected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    64
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    65
                        Template.CallsiteEqualsMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    66
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    67
                /* Group 47: callsite = methodref, methodref != expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    68
                 * expected is class, expected and callsite in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    69
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    70
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    71
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    72
                                             EnumSet.of(MethodData.Access.PUBLIC,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    73
                                                        MethodData.Access.PACKAGE,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    74
                                                        MethodData.Access.PROTECTED),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    75
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    76
                                             EnumSet.of(ClassData.Package.SAME)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    77
                        Template.OverrideAbstractExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    78
                        Template.MethodrefNotEqualsExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    79
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    80
                        Template.CallsiteEqualsMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    81
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    82
                /* Group 48: callsite = methodref, methodref != expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    83
                 * expected is interface, expected and callsite in the same package
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
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    86
                        Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    87
                                             EnumSet.of(MethodData.Access.PUBLIC),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    88
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    89
                                             EnumSet.of(ClassData.Package.SAME)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    90
                        Template.OverrideAbstractExpectedIface,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    91
                        Template.MethodrefNotEqualsExpectedIface,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    92
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    93
                        Template.CallsiteEqualsMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    94
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    95
                /* Group 49: callsite :> methodref, methodref = expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    96
                 * expected is class, expected and callsite in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    97
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    98
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
    99
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   100
                                             EnumSet.of(MethodData.Access.PUBLIC,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   101
                                                        MethodData.Access.PACKAGE,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   102
                                                        MethodData.Access.PROTECTED),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   103
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   104
                                             EnumSet.of(ClassData.Package.SAME)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   105
                        Template.OverrideAbstractExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   106
                        Template.MethodrefEqualsExpected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   107
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   108
                        Template.CallsiteSubclassMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   109
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   110
                /* Group 50: callsite :> methodref, methodref != expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   111
                 * expected is class, expected and callsite in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   112
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   113
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   114
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   115
                                             EnumSet.of(MethodData.Access.PUBLIC,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   116
                                                        MethodData.Access.PACKAGE,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   117
                                                        MethodData.Access.PROTECTED),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   118
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   119
                                             EnumSet.of(ClassData.Package.SAME)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   120
                        Template.OverrideAbstractExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   121
                        Template.MethodrefNotEqualsExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   122
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   123
                        Template.CallsiteSubclassMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   124
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   125
                /* Group 51: callsite :> methodref, methodref != expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   126
                 * expected is interface, expected and callsite in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   127
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   128
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   129
                        Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   130
                                             EnumSet.of(MethodData.Access.PUBLIC),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   131
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   132
                                             EnumSet.of(ClassData.Package.SAME)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   133
                        Template.OverrideAbstractExpectedIface,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   134
                        Template.MethodrefNotEqualsExpectedIface,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   135
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   136
                        Template.CallsiteSubclassMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   137
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   138
                /* Group 52: callsite = methodref, methodref != expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   139
                 * expected is class, expected and callsite not in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   140
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   141
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   142
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   143
                                             EnumSet.of(MethodData.Access.PUBLIC,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   144
                                                        MethodData.Access.PROTECTED),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   145
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   146
                                             EnumSet.of(ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   147
                        Template.OverrideAbstractExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   148
                        Template.MethodrefNotEqualsExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   149
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   150
                        Template.CallsiteEqualsMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   151
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   152
                /* Group 53: callsite = methodref, methodref != expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   153
                 * expected is interface, expected and callsite not in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   154
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   155
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   156
                        Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   157
                                             EnumSet.of(MethodData.Access.PUBLIC),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   158
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   159
                                             EnumSet.of(ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   160
                        Template.OverrideAbstractExpectedIface,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   161
                        Template.MethodrefNotEqualsExpectedIface,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   162
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   163
                        Template.CallsiteEqualsMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   164
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   165
                /* Group 54: callsite :> methodref, methodref = expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   166
                 * expected is class, expected and callsite not in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   167
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   168
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   169
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   170
                                             EnumSet.of(MethodData.Access.PUBLIC,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   171
                                                        MethodData.Access.PROTECTED),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   172
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   173
                                             EnumSet.of(ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   174
                        Template.OverrideAbstractExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   175
                        Template.MethodrefEqualsExpected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   176
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   177
                        Template.CallsiteSubclassMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   178
                        Template.ObjectrefAssignableToCallsite),
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
                /* Group 55: callsite :> methodref, methodref != expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   181
                 * expected is class, expected and callsite not in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   182
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   183
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   184
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   185
                                             EnumSet.of(MethodData.Access.PUBLIC,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   186
                                                        MethodData.Access.PROTECTED),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   187
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   188
                                             EnumSet.of(ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   189
                        Template.OverrideAbstractExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   190
                        Template.MethodrefNotEqualsExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   191
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   192
                        Template.CallsiteSubclassMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   193
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   194
                /* Group 56: callsite :> methodref, methodref != expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   195
                 * expected is interface, expected and callsite not in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   196
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   197
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   198
                        Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   199
                                             EnumSet.of(MethodData.Access.PUBLIC),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   200
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   201
                                             EnumSet.of(ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   202
                        Template.OverrideAbstractExpectedIface,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   203
                        Template.MethodrefNotEqualsExpectedIface,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   204
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   205
                        Template.CallsiteSubclassMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   206
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   207
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   208
                /* Funny cases */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   209
                /* Group 57: callsite = methodref, methodref =
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   210
                 * expected expected is interface, expected and
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   211
                 * callsite in a different package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   212
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   213
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   214
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   215
                                             EnumSet.of(MethodData.Access.PROTECTED),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   216
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   217
                                             EnumSet.of(ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   218
                        Template.OverrideAbstractExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   219
                        Template.MethodrefEqualsExpected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   220
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   221
                        Template.CallsiteEqualsMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   222
                        Template.ObjectrefEqualsOrExactSubclassOfCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   223
                /* Group 58: callsite = methodref, methodref \!=
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   224
                 * expected expected is interface, expected and
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   225
                 * callsite in a different package */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   226
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   227
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   228
                                             EnumSet.of(MethodData.Access.PROTECTED),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   229
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   230
                                             EnumSet.of(ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   231
                        Template.MethodrefNotEqualsExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   232
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   233
                        Template.CallsiteEqualsMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   234
                        Template.ObjectrefEqualsOrExactSubclassOfCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   235
                /* Group 59: callsite subclass methodref, methodref =
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   236
                 * expected expected is interface, expected and
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   237
                 * callsite in a different package */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   238
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   239
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   240
                                             EnumSet.of(MethodData.Access.PROTECTED),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   241
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   242
                                             EnumSet.of(ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   243
                        Template.OverrideAbstractExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   244
                        Template.MethodrefEqualsExpected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   245
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   246
                        Template.CallsiteSubclassMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   247
                        Template.ObjectrefEqualsOrExactSubclassOfCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   248
                /* Group 60: callsite subclass methodref, methodref
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   249
                 * \!= expected expected is interface, expected and
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   250
                 * callsite in a different package */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   251
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   252
                        Template.ResultCombo(EnumSet.of(Template.Kind.CLASS),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   253
                                             EnumSet.of(MethodData.Access.PROTECTED),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   254
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   255
                                             EnumSet.of(ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   256
                        Template.OverrideAbstractExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   257
                        Template.MethodrefNotEqualsExpectedClass,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   258
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   259
                        Template.CallsiteSubclassMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   260
                        Template.ObjectrefEqualsOrExactSubclassOfCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   261
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   262
                /* Methodref is an interface */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   263
                /* Group 61: callsite :> methodref, methodref = expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   264
                 * expected is interface, expected and callsite in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   265
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   266
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   267
                        Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   268
                                             EnumSet.of(MethodData.Access.PUBLIC),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   269
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   270
                                             EnumSet.of(ClassData.Package.SAME,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   271
                                                        ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   272
                        Template.OverrideAbstractExpectedIface,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   273
                        Template.MethodrefEqualsExpected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   274
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   275
                        Template.CallsiteSubclassMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   276
                        Template.ObjectrefAssignableToCallsite),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   277
                /* Group 62: callsite :> methodref, methodref != expected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   278
                 * expected is interface, expected and callsite in the same package
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   279
                 */
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   280
                new TestGroup.Simple(initBuilder,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   281
                        Template.ResultCombo(EnumSet.of(Template.Kind.INTERFACE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   282
                                             EnumSet.of(MethodData.Access.PUBLIC),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   283
                                             EnumSet.of(MethodData.Context.INSTANCE),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   284
                                             EnumSet.of(ClassData.Package.SAME,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   285
                                                        ClassData.Package.DIFFERENT)),
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   286
                        Template.OverrideAbstractExpectedIface,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   287
                        Template.IfaceMethodrefNotEqualsExpected,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   288
                        Template.IgnoredAbstract,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   289
                        Template.CallsiteSubclassMethodref,
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   290
                        Template.ObjectrefAssignableToCallsite)
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   291
            );
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   292
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   293
    private InvokeSpecialSuccessTest() {
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   294
        super(testgroups);
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   295
    }
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   296
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   297
    public static void main(final String... args) {
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   298
        new InvokeSpecialSuccessTest().run();
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   299
    }
f3f7367e8c53 8078112: [TESTBUG] Integrate Selection/Resolution test suite into jtreg tests
ddmitriev
parents:
diff changeset
   300
}