test/langtools/tools/javac/lambda/bridge/template_tests/BridgeMethodsTemplateTest.java
author mcimadamore
Wed, 20 Dec 2017 15:33:31 +0000
changeset 48352 9b700a5c4381
parent 47216 71c04702a3d5
permissions -rw-r--r--
8057650: uniform error diagnostics for inconsistent inherited method signatures Summary: consolidate diagnostics for bad overrides Reviewed-by: vromero
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19931
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
     1
/*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
     4
 *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
     7
 * published by the Free Software Foundation.
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
     8
 *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    13
 * accompanied this code).
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    14
 *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    18
 *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    21
 * questions.
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    22
 */
34752
9c262a013456 8145342: Some copyright notices are inconsistently and ill formatted
vasya
parents: 19931
diff changeset
    23
19931
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    24
import java.io.IOException;
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    25
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    26
import org.testng.annotations.Test;
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    27
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    28
/**
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    29
 * BridgeMethodsTemplateTest
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    30
 *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    31
 * @author Brian Goetz
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    32
 */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    33
@Test
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    34
public class BridgeMethodsTemplateTest extends BridgeMethodTestCase {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    35
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    36
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    37
     * Cc1(A) -> Cc1(Ac0)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    38
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    39
     * 0*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    40
     * 1: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    41
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    42
    public void test1() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    43
        compileSpec("Cc1(A)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    44
        assertLinkage("C", LINKAGE_ERROR, "C1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    45
        recompileSpec("Cc1(Ac0)", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    46
        assertLinkage("C", "A0", "C1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    47
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    48
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    49
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    50
     * Cc1(I) -> Cc1(Id0)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    51
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    52
     * 0*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    53
     * 1: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    54
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    55
    public void test2() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    56
        compileSpec("Cc1(I)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    57
        assertLinkage("C", LINKAGE_ERROR, "C1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    58
        recompileSpec("Cc1(Id0)", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    59
        assertLinkage("C", "I0", "C1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    60
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    61
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    62
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    63
     * C(Bc1(A)) -> C(Bc1(Ac0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    64
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    65
     * 0*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    66
     * 1: Inherited from B
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    67
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    68
    public void test3() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    69
        compileSpec("C(Bc1(A))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    70
        assertLinkage("C", LINKAGE_ERROR, "B1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    71
        recompileSpec("C(Bc1(Ac0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    72
        assertLinkage("C", "A0", "B1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    73
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    74
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    75
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    76
     * C(B(Ac0)) -> C(Bc1(Ac0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    77
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    78
     * 0: Inherited from B (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    79
     * 1: Inherited from B
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    80
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    81
    public void test4() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    82
        compileSpec("C(B(Ac0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    83
        assertLinkage("C", "A0", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    84
        recompileSpec("C(Bc1(Ac0))", "B");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    85
        assertLinkage("C", "B1", "B1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    86
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    87
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    88
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    89
     * C(B(A)) -> C(Bc1(Ac0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    90
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    91
     * 0: Inherited from B (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    92
     * 1: Inherited from B
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    93
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    94
    public void test5() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    95
        compileSpec("C(B(A))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    96
        assertLinkage("C", LINKAGE_ERROR, LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    97
        recompileSpec("C(Bc1(Ac0))", "A", "B");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    98
        assertLinkage("C", "B1", "B1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
    99
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   100
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   101
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   102
     * C(Ac1(I)) -> C(Ac1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   103
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   104
     * 0*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   105
     * 1: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   106
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   107
    public void test6() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   108
        compileSpec("C(Ac1(I))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   109
        assertLinkage("C", LINKAGE_ERROR, "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   110
        recompileSpec("C(Ac1(Id0))", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   111
        assertLinkage("C", "I0", "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   112
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   113
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   114
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   115
     * C(A(Id0)) -> C(Ac1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   116
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   117
     * 0: Inherited from A (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   118
     * 1: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   119
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   120
    public void test7() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   121
        compileSpec("C(A(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   122
        assertLinkage("C", "I0", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   123
        recompileSpec("C(Ac1(Id0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   124
        assertLinkage("C", "A1", "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   125
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   126
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   127
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   128
     * C(A(I)) -> C(Ac1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   129
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   130
     * 0*: Inherited from A (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   131
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   132
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   133
    public void test8() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   134
        compileSpec("C(A(I))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   135
        assertLinkage("C", LINKAGE_ERROR, LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   136
        recompileSpec("C(Ac1(Id0))", "A", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   137
        assertLinkage("C", "A1", "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   138
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   139
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   140
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   141
     * C(Id1(J)) -> C(Id1(Jd0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   142
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   143
     * 0*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   144
     * 1: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   145
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   146
    public void test9() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   147
        compileSpec("C(Id1(J))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   148
        assertLinkage("C", LINKAGE_ERROR, "I1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   149
        recompileSpec("C(Id1(Jd0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   150
        assertLinkage("C", "J0", "I1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   151
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   152
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   153
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   154
     * C(I(Jd0)) -> C(Id1(Jd0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   155
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   156
     * 0: Inherited default from I (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   157
     * 1: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   158
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   159
    public void test10() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   160
        compileSpec("C(I(Jd0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   161
        assertLinkage("C", "J0", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   162
        recompileSpec("C(Id1(Jd0))", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   163
        assertLinkage("C", "I1", "I1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   164
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   165
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   166
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   167
     * C(I(J)) -> C(Id1(Jd0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   168
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   169
     * 0: Inherited default from I (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   170
     * 1: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   171
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   172
    public void test11() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   173
        compileSpec("C(I(J))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   174
        assertLinkage("C", LINKAGE_ERROR, LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   175
        recompileSpec("C(Id1(Jd0))", "I", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   176
        assertLinkage("C", "I1", "I1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   177
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   178
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   179
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   180
     * Cc2(B(Ac0)) -> Cc2(Bc1(Ac0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   181
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   182
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   183
     * 1*: Inherited from B
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   184
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   185
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   186
    public void test12() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   187
        compileSpec("Cc2(B(Ac0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   188
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   189
        recompileSpec("Cc2(Bc1(Ac0))", "B");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   190
        assertLinkage("C", "C2", "B1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   191
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   192
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   193
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   194
     * Cc2(B(Aa0)) -> Cc2(Bc1(Aa0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   195
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   196
     * 0: Bridge in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   197
     * 1*: Inherited from B
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   198
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   199
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   200
    public void test13() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   201
        compileSpec("Cc2(B(Aa0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   202
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   203
        recompileSpec("Cc2(Bc1(Aa0))", "B");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   204
        assertLinkage("C", "C2", "B1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   205
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   206
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   207
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   208
     * Cc2(Bc1(A)) -> Cc2(Bc1(Ac0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   209
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   210
     * 0*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   211
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   212
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   213
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   214
    public void test14() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   215
        compileSpec("Cc2(Bc1(A))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   216
        assertLinkage("C", LINKAGE_ERROR, "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   217
        recompileSpec("Cc2(Bc1(Ac0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   218
        assertLinkage("C", "A0", "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   219
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   220
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   221
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   222
     * Cc2(Ba1(A)) -> Cc2(Ba1(Ac0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   223
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   224
     * 0*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   225
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   226
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   227
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   228
    public void test15() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   229
        compileSpec("Cc2(Ba1(A))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   230
        assertLinkage("C", LINKAGE_ERROR, "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   231
        recompileSpec("Cc2(Ba1(Ac0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   232
        assertLinkage("C", "A0", "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   233
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   234
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   235
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   236
     * Cc2(B(A)) -> Cc2(Bc1(Ac0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   237
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   238
     * 0*: Inherited from B (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   239
     * 1*: Inherited from B
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   240
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   241
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   242
    public void test16() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   243
        compileSpec("Cc2(B(A))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   244
        assertLinkage("C", LINKAGE_ERROR, LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   245
        recompileSpec("Cc2(Bc1(Ac0))", "B", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   246
        assertLinkage("C", "B1", "B1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   247
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   248
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   249
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   250
     * Cc2(A(Id0)) -> Cc2(Ac1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   251
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   252
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   253
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   254
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   255
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   256
    public void test17() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   257
        compileSpec("Cc2(A(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   258
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   259
        recompileSpec("Cc2(Ac1(Id0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   260
        assertLinkage("C", "C2", "A1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   261
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   262
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   263
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   264
     * Cc2(A(Ia0)) -> Cc2(Ac1(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   265
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   266
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   267
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   268
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   269
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   270
    public void test18() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   271
        compileSpec("Cc2(A(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   272
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   273
        recompileSpec("Cc2(Ac1(Ia0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   274
        assertLinkage("C", "C2", "A1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   275
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   276
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   277
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   278
     * Cc2(Ac1(I)) -> Cc2(Ac1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   279
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   280
     * 0*: Inherited from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   281
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   282
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   283
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   284
    public void test19() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   285
        compileSpec("Cc2(Ac1(I))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   286
        assertLinkage("C", LINKAGE_ERROR, "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   287
        recompileSpec("Cc2(Ac1(Id0))", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   288
        assertLinkage("C", "I0", "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   289
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   290
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   291
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   292
     * Cc2(Aa1(I)) -> Cc2(Aa1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   293
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   294
     * 0*: Inherited from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   295
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   296
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   297
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   298
    public void test20() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   299
        compileSpec("Cc2(Aa1(I))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   300
        assertLinkage("C", LINKAGE_ERROR, "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   301
        recompileSpec("Cc2(Aa1(Id0))", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   302
        assertLinkage("C", "I0", "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   303
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   304
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   305
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   306
     * Cc2(A(I)) -> Cc2(Ac1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   307
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   308
     * 0*: Inherited from A (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   309
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   310
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   311
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   312
    public void test21() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   313
        compileSpec("Cc2(A(I))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   314
        assertLinkage("C", LINKAGE_ERROR, LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   315
        recompileSpec("Cc2(Ac1(Id0))", "A", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   316
        assertLinkage("C", "A1", "A1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   317
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   318
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   319
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   320
     * Cc2(J(Id0)) -> Cc2(Jd1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   321
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   322
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   323
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   324
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   325
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   326
    public void test22() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   327
        compileSpec("Cc2(J(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   328
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   329
        recompileSpec("Cc2(Jd1(Id0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   330
        assertLinkage("C", "C2", "J1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   331
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   332
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   333
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   334
     * Cc2(J(Ia0)) -> Cc2(Jd1(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   335
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   336
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   337
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   338
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   339
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   340
    public void test23() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   341
        compileSpec("Cc2(J(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   342
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   343
        recompileSpec("Cc2(Jd1(Ia0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   344
        assertLinkage("C", "C2", "J1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   345
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   346
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   347
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   348
     * Cc2(Jd1(I)) -> Cc2(Jd1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   349
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   350
     * 0*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   351
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   352
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   353
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   354
    public void test24() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   355
        compileSpec("Cc2(Jd1(I))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   356
        assertLinkage("C", LINKAGE_ERROR, "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   357
        recompileSpec("Cc2(Jd1(Id0))", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   358
        assertLinkage("C", "I0", "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   359
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   360
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   361
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   362
     * Cc2(Ja1(I)) -> Cc2(Ja1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   363
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   364
     * 0*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   365
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   366
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   367
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   368
    public void test25() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   369
        compileSpec("Cc2(Ja1(I))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   370
        assertLinkage("C", LINKAGE_ERROR, "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   371
        recompileSpec("Cc2(Ja1(Id0))", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   372
        assertLinkage("C", "I0", "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   373
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   374
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   375
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   376
     * Cc2(J(I)) -> Cc2(Jd1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   377
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   378
     * 0*: Inherited default from J (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   379
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   380
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   381
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   382
    public void test26() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   383
        compileSpec("Cc2(J(I))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   384
        assertLinkage("C", LINKAGE_ERROR, LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   385
        recompileSpec("Cc2(Jd1(Id0))", "J", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   386
        assertLinkage("C", "J1", "J1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   387
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   388
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   389
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   390
     * C(Ac1, I) -> C(Ac1, Id0)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   391
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   392
     * 0*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   393
     * 1: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   394
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   395
    public void test27() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   396
        compileSpec("C(Ac1,I)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   397
        assertLinkage("C", LINKAGE_ERROR, "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   398
        recompileSpec("C(Ac1,Id0)", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   399
        assertLinkage("C", "I0", "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   400
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   401
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   402
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   403
     * C(A, Id0) -> C(Ac1, Id0)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   404
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   405
     * 0*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   406
     * 1: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   407
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   408
    public void test28() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   409
        compileSpec("C(A,Id0)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   410
        assertLinkage("C", "I0", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   411
        recompileSpec("C(Ac1,Id0)", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   412
        assertLinkage("C", "I0", "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   413
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   414
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   415
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   416
     * C(A, I) -> C(Ac1, Id0)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   417
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   418
     * 0*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   419
     * 1: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   420
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   421
    public void test29() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   422
        compileSpec("C(A,I)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   423
        assertLinkage("C", LINKAGE_ERROR, LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   424
        recompileSpec("C(Ac1,Id0)", "A", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   425
        assertLinkage("C", "I0", "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   426
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   427
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   428
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   429
     * Cc2(Ac1, I) -> Cc2(Ac1, Id0)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   430
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   431
     * 0*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   432
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   433
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   434
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   435
    public void test30() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   436
        compileSpec("Cc2(Ac1,I)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   437
        assertLinkage("C", LINKAGE_ERROR, "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   438
        recompileSpec("Cc2(Ac1,Id0)", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   439
        assertLinkage("C", "I0", "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   440
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   441
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   442
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   443
     * Cc2(Aa1, I) -> Cc2(Aa1, Id0)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   444
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   445
     * 0*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   446
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   447
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   448
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   449
    public void test31() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   450
        compileSpec("Cc2(Aa1,I)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   451
        assertLinkage("C", LINKAGE_ERROR, "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   452
        recompileSpec("Cc2(Aa1,Id0)", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   453
        assertLinkage("C", "I0", "C2", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   454
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   455
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   456
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   457
     * Cc2(A, Id0) -> Cc2(Ac1, Id0)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   458
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   459
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   460
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   461
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   462
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   463
    public void test32() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   464
        compileSpec("Cc2(A,Id0)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   465
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   466
        recompileSpec("Cc2(Ac1,Id0)", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   467
        assertLinkage("C", "C2", "A1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   468
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   469
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   470
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   471
     * Cc2(A, Ia0) -> Cc2(Ac1, Ia0)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   472
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   473
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   474
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   475
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   476
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   477
    public void test33() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   478
        compileSpec("Cc2(A,Ia0)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   479
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   480
        recompileSpec("Cc2(Ac1,Ia0)", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   481
        assertLinkage("C", "C2", "A1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   482
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   483
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   484
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   485
     * Cc2(A, I) -> Cc2(Ac1, Id0)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   486
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   487
     * 0*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   488
     * 1*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   489
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   490
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   491
    public void test34() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   492
        compileSpec("Cc2(A,I)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   493
        assertLinkage("C", LINKAGE_ERROR, LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   494
        recompileSpec("Cc2(Ac1,Id0)", "A", "I");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   495
        assertLinkage("C", "I0", "A1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   496
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   497
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   498
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   499
     * Cc2(Id0, J) -> Cc2(Id0, Jd1)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   500
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   501
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   502
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   503
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   504
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   505
    public void test35() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   506
        compileSpec("Cc2(Id0,J)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   507
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   508
        recompileSpec("Cc2(Id0,Jd1)", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   509
        assertLinkage("C", "C2", "J1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   510
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   511
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   512
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   513
     * Cc2(Ia0, J) -> Cc2(Ia0, Jd1)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   514
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   515
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   516
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   517
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   518
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   519
    public void test36() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   520
        compileSpec("Cc2(Ia0,J)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   521
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   522
        recompileSpec("Cc2(Ia0,Jd1)", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   523
        assertLinkage("C", "C2", "J1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   524
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   525
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   526
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   527
     * Cc2(I, J) -> Cc2(Id0, Jd1)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   528
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   529
     * 0*: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   530
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   531
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   532
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   533
    public void test37() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   534
        compileSpec("Cc2(I,J)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   535
        assertLinkage("C", LINKAGE_ERROR, LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   536
        recompileSpec("Cc2(Id0,Jd1)", "I", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   537
        assertLinkage("C", "I0", "J1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   538
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   539
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   540
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   541
     * C(A(Id0), J(Id0)) -> C(Ac1(Id0), J(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   542
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   543
     * 0: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   544
     * 0*: Inherited from A (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   545
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   546
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   547
    public void test38() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   548
        compileSpec("C(A(Id0),J(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   549
        assertLinkage("C", "I0", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   550
        recompileSpec("C(Ac1(Id0),J(Id0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   551
        assertLinkage("C", "A1", "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   552
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   553
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   554
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   555
     * C(A(Id0), J(Id0)) -> C(A(Id0), Jd1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   556
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   557
     * 0: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   558
     * 0: Inherited default from J (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   559
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   560
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   561
    public void test39() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   562
        compileSpec("C(A(Id0),J(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   563
        assertLinkage("C", "I0", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   564
        recompileSpec("C(A(Id0),Jd1(Id0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   565
        assertLinkage("C", "J1", "J1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   566
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   567
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   568
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   569
     * C(A(Id0), J(Id0)) -> C(Ac2(Id0), Jd1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   570
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   571
     * 0: Inherited default from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   572
     * 0*: Inherited from A (new bridge in A beats new bridge in J)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   573
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   574
     * 2: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   575
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   576
    public void test40() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   577
        compileSpec("C(A(Id0),J(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   578
        assertLinkage("C", "I0", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   579
        recompileSpec("C(Ac2(Id0),Jd1(Id0))", "A", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   580
        assertLinkage("C", "A2", "J1", "A2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   581
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   582
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   583
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   584
     * C(J(Id0), K(Id0)) -> C(Jd1(Id0), K(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   585
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   586
     * 0: Inherited from I
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   587
     * 0*: Inherited default from J (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   588
     * 1: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   589
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   590
    public void test41() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   591
        compileSpec("C(J(Id0),K(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   592
        assertLinkage("C", "I0", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   593
        recompileSpec("C(Jd1(Id0),K(Id0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   594
        assertLinkage("C", "J1", "J1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   595
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   596
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   597
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   598
     * C(Ac2(Id0), J(Id0)) -> C(Ac2(Id0), Jd1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   599
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   600
     * 0: Inherited from A (bridge in A beats new bridge in J)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   601
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   602
     * 2: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   603
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   604
    public void test42() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   605
        compileSpec("C(Ac2(Id0),J(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   606
        assertLinkage("C", "A2", LINKAGE_ERROR, "A2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   607
        recompileSpec("C(Ac2(Id0),Jd1(Id0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   608
        assertLinkage("C", "A2", "J1", "A2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   609
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   610
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   611
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   612
     * C(Ac2(Ia0), J(Ia0)) -> C(Ac2(Ia0), Jd1(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   613
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   614
     * 0: Inherited from A (bridge in A beats new bridge in J)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   615
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   616
     * 2: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   617
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   618
    public void test43() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   619
        compileSpec("C(Ac2(Ia0),J(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   620
        assertLinkage("C", "A2", LINKAGE_ERROR, "A2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   621
        recompileSpec("C(Ac2(Ia0),Jd1(Ia0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   622
        assertLinkage("C", "A2", "J1", "A2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   623
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   624
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   625
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   626
     * C(A(Id0), Jd1(Id0)) -> C(Ac2(Id0), Jd1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   627
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   628
     * 0: Inherited from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   629
     * 0*: Inherited from A (new bridge in A beats bridge in J)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   630
     * 1: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   631
     * 2*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   632
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   633
    public void test44() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   634
        compileSpec("C(A(Id0),Jd1(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   635
        assertLinkage("C", "J1", "J1", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   636
        recompileSpec("C(Ac2(Id0),Jd1(Id0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   637
        assertLinkage("C", "A2", "J1", "A2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   638
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   639
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   640
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   641
     * C(A(Ia0), Jd1(Ia0)) -> C(Ac2(Ia0), Jd1(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   642
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   643
     * 0: Inherited from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   644
     * 0*: Inherited from A (new bridge in A beats bridge in J)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   645
     * 1: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   646
     * 2*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   647
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   648
    public void test45() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   649
        compileSpec("C(A(Ia0),Jd1(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   650
        assertLinkage("C", "J1", "J1", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   651
        recompileSpec("C(Ac2(Ia0),Jd1(Ia0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   652
        assertLinkage("C", "A2", "J1", "A2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   653
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   654
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   655
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   656
     * Cc2(A(Id0), J(Id0)) -> Cc2(Ac1(Id0), J(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   657
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   658
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   659
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   660
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   661
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   662
    public void test46() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   663
        compileSpec("Cc2(A(Id0),J(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   664
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   665
        recompileSpec("Cc2(Ac1(Id0),J(Id0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   666
        assertLinkage("C", "C2", "A1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   667
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   668
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   669
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   670
     * Cc2(A(Ia0), J(Ia0)) -> Cc2(Ac1(Ia0), J(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   671
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   672
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   673
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   674
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   675
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   676
    public void test47() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   677
        compileSpec("Cc2(A(Ia0),J(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   678
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   679
        recompileSpec("Cc2(Ac1(Ia0),J(Ia0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   680
        assertLinkage("C", "C2", "A1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   681
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   682
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   683
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   684
     * Cc2(A(Id0), J(Id0)) -> Cc2(A(Id0), Jd1(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   685
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   686
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   687
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   688
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   689
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   690
    public void test48() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   691
        compileSpec("Cc2(A(Id0),J(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   692
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   693
        recompileSpec("Cc2(A(Id0),Jd1(Id0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   694
        assertLinkage("C", "C2", "J1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   695
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   696
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   697
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   698
     * Cc2(A(Ia0), J(Ia0)) -> Cc2(A(Ia0), Jd1(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   699
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   700
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   701
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   702
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   703
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   704
    public void test49() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   705
        compileSpec("Cc2(A(Ia0),J(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   706
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   707
        recompileSpec("Cc2(A(Ia0),Jd1(Ia0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   708
        assertLinkage("C", "C2", "J1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   709
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   710
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   711
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   712
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   713
     * Cc3(A(Id0), J(Id0)) -> Cc3(Ac1(Id0), Jd2(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   714
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   715
     * 0: Bridge in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   716
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   717
     * 2*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   718
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   719
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   720
    public void test50() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   721
        compileSpec("Cc3(A(Id0),J(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   722
        assertLinkage("C", "C3", LINKAGE_ERROR, LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   723
        recompileSpec("Cc3(Ac1(Id0),Jd2(Id0))", "A", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   724
        assertLinkage("C", "C3", "A1", "J2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   725
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   726
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   727
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   728
     * Cc3(A(Ia0), J(Ia0)) -> Cc3(Ac1(Ia0), Jd2(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   729
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   730
     * 0: Bridge in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   731
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   732
     * 2*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   733
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   734
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   735
    public void test51() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   736
        compileSpec("Cc3(A(Ia0),J(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   737
        assertLinkage("C", "C3", LINKAGE_ERROR, LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   738
        recompileSpec("Cc3(Ac1(Ia0),Jd2(Ia0))", "A", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   739
        assertLinkage("C", "C3", "A1", "J2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   740
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   741
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   742
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   743
     * Cc2(J(Id0), K(Id0)) -> Cc2(Jd1(Id0), K(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   744
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   745
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   746
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   747
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   748
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   749
    public void test52() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   750
        compileSpec("Cc2(J(Id0),K(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   751
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   752
        recompileSpec("Cc2(Jd1(Id0),K(Id0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   753
        assertLinkage("C", "C2", "J1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   754
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   755
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   756
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   757
     * Cc2(J(Ia0), K(Ia0)) -> Cc2(Jd1(Ia0), K(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   758
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   759
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   760
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   761
     * 2: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   762
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   763
    public void test53() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   764
        compileSpec("Cc2(J(Ia0),K(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   765
        assertLinkage("C", "C2", LINKAGE_ERROR, "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   766
        recompileSpec("Cc2(Jd1(Ia0),K(Ia0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   767
        assertLinkage("C", "C2", "J1", "C2");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   768
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   769
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   770
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   771
     * Cc3(J(Id0), K(Id0)) -> Cc3(Jd1(Id0), Kd2(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   772
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   773
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   774
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   775
     * 2*: Inherited default from K
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   776
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   777
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   778
    public void test54() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   779
        compileSpec("Cc3(J(Id0),K(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   780
        assertLinkage("C", "C3", LINKAGE_ERROR, LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   781
        recompileSpec("Cc3(Jd1(Id0),Kd2(Id0))", "J", "K");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   782
        assertLinkage("C", "C3", "J1", "K2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   783
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   784
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   785
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   786
     * Cc3(J(Ia0), K(Ia0)) -> Cc3(Jd1(Ia0), Kd2(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   787
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   788
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   789
     * 1*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   790
     * 2*: Inherited default from K
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   791
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   792
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   793
    public void test55() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   794
        compileSpec("Cc3(J(Ia0),K(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   795
        assertLinkage("C", "C3", LINKAGE_ERROR, LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   796
        recompileSpec("Cc3(Jd1(Ia0),Kd2(Ia0))", "J", "K");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   797
        assertLinkage("C", "C3", "J1", "K2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   798
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   799
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   800
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   801
     * Cc3(Ac1(Id0), J(Id0)) -> Cc3(Ac1(Id0), Jd2(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   802
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   803
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   804
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   805
     * 2*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   806
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   807
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   808
    public void test56() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   809
        compileSpec("Cc3(Ac1(Id0),J(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   810
        assertLinkage("C", "C3", "C3", LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   811
        recompileSpec("Cc3(Ac1(Id0),Jd2(Id0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   812
        assertLinkage("C", "C3", "C3", "J2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   813
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   814
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   815
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   816
     * Cc3(Ac1(Ia0), J(Ia0)) -> Cc3(Ac1(Ia0), Jd2(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   817
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   818
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   819
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   820
     * 2*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   821
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   822
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   823
    public void test57() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   824
        compileSpec("Cc3(Ac1(Ia0),J(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   825
        assertLinkage("C", "C3", "C3", LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   826
        recompileSpec("Cc3(Ac1(Ia0),Jd2(Ia0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   827
        assertLinkage("C", "C3", "C3", "J2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   828
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   829
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   830
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   831
     * Cc3(Aa1(Id0), J(Id0)) -> Cc3(Aa1(Id0), Jd2(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   832
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   833
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   834
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   835
     * 2*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   836
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   837
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   838
    public void test58() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   839
        compileSpec("Cc3(Aa1(Id0),J(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   840
        assertLinkage("C", "C3", "C3", LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   841
        recompileSpec("Cc3(Aa1(Id0),Jd2(Id0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   842
        assertLinkage("C", "C3", "C3", "J2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   843
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   844
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   845
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   846
     * Cc3(Aa1(Ia0), J(Ia0)) -> Cc3(Aa1(Ia0), Jd2(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   847
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   848
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   849
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   850
     * 2*: Inherited default from J
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   851
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   852
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   853
    public void test59() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   854
        compileSpec("Cc3(Aa1(Ia0),J(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   855
        assertLinkage("C", "C3", "C3", LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   856
        recompileSpec("Cc3(Aa1(Ia0),Jd2(Ia0))", "J");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   857
        assertLinkage("C", "C3", "C3", "J2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   858
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   859
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   860
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   861
     * Cc3(A(Id0), Jd2(Id0)) -> Cc3(Ac1(Id0), Jd2(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   862
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   863
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   864
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   865
     * 2: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   866
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   867
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   868
    public void test60() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   869
        compileSpec("Cc3(A(Id0),Jd2(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   870
        assertLinkage("C", "C3", LINKAGE_ERROR, "C3", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   871
        recompileSpec("Cc3(Ac1(Id0),Jd2(Id0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   872
        assertLinkage("C", "C3", "A1", "C3", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   873
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   874
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   875
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   876
     * Cc3(A(Im0), Jd2(Ia0)) -> Cc3(Ac1(Im0), Jd2(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   877
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   878
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   879
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   880
     * 2: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   881
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   882
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   883
    public void test61() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   884
        compileSpec("Cc3(A(Ia0),Jd2(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   885
        assertLinkage("C", "C3", LINKAGE_ERROR, "C3", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   886
        recompileSpec("Cc3(Ac1(Ia0),Jd2(Ia0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   887
        assertLinkage("C", "C3", "A1", "C3", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   888
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   889
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   890
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   891
     * Cc3(A(Im0), Ja2(Id0)) -> Cc3(Ac1(Id0), Ja2(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   892
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   893
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   894
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   895
     * 2: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   896
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   897
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   898
    public void test62() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   899
        compileSpec("Cc3(A(Id0),Ja2(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   900
        assertLinkage("C", "C3", LINKAGE_ERROR, "C3", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   901
        recompileSpec("Cc3(Ac1(Id0),Ja2(Id0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   902
        assertLinkage("C", "C3", "A1", "C3", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   903
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   904
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   905
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   906
     * Cc3(A(Im0), Ja2(Ia0)) -> Cc3(Ac1(Ia0), Ja2(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   907
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   908
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   909
     * 1*: Inherited from A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   910
     * 2: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   911
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   912
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   913
    public void test63() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   914
        compileSpec("Cc3(A(Ia0),Ja2(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   915
        assertLinkage("C", "C3", LINKAGE_ERROR, "C3", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   916
        recompileSpec("Cc3(Ac1(Ia0),Ja2(Ia0))", "A");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   917
        assertLinkage("C", "C3", "A1", "C3", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   918
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   919
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   920
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   921
     * Cc3(Jd1(Id0), K(Id0)) -> Cc3(Jd1(Id0), Kd2(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   922
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   923
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   924
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   925
     * 2*: Inherited default from K
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   926
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   927
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   928
    public void test64() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   929
        compileSpec("Cc3(Jd1(Id0),K(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   930
        assertLinkage("C", "C3", "C3", LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   931
        recompileSpec("Cc3(Jd1(Id0),Kd2(Id0))", "K");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   932
        assertLinkage("C", "C3", "C3", "K2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   933
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   934
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   935
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   936
     * Cc3(Jd1(Ia0), K(Ia0)) -> Cc3(Jd1(Ia0), Kd2(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   937
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   938
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   939
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   940
     * 2*: Inherited default from K
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   941
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   942
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   943
    public void test65() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   944
        compileSpec("Cc3(Jd1(Ia0),K(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   945
        assertLinkage("C", "C3", "C3", LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   946
        recompileSpec("Cc3(Jd1(Ia0),Kd2(Ia0))", "K");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   947
        assertLinkage("C", "C3", "C3", "K2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   948
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   949
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   950
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   951
     * Cc3(Ja1(Id0), K(Id0)) -> Cc3(Ja1(Id0), Kd2(Id0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   952
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   953
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   954
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   955
     * 2*: Inherited default from K
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   956
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   957
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   958
    public void test66() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   959
        compileSpec("Cc3(Jd1(Id0),K(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   960
        assertLinkage("C", "C3", "C3", LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   961
        recompileSpec("Cc3(Jd1(Id0),Kd2(Id0))", "K");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   962
        assertLinkage("C", "C3", "C3", "K2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   963
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   964
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   965
    /*
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   966
     * Cc3(Ja1(Ia0), K(Ia0)) -> Cc3(Ja1(Ia0), Kd2(Ia0))
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   967
     *
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   968
     * 0: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   969
     * 1: Declared in C (through bridge)
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   970
     * 2*: Inherited default from K
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   971
     * 3: Declared in C
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   972
     */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   973
    public void test67() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   974
        compileSpec("Cc3(Jd1(Ia0),K(Ia0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   975
        assertLinkage("C", "C3", "C3", LINKAGE_ERROR, "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   976
        recompileSpec("Cc3(Jd1(Ia0),Kd2(Ia0))", "K");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   977
        assertLinkage("C", "C3", "C3", "K2", "C3");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   978
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   979
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   980
    // Dan's set A
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   981
    public void testA1() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   982
        compileSpec("C(Id0)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   983
        assertLinkage("C", "I0");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   984
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   985
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   986
    public void testA2() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   987
        compileSpec("C(A(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   988
        assertLinkage("C", "I0");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   989
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   990
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   991
    public void testA3() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   992
        compileSpec("C(A(Id0),J)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   993
        assertLinkage("C", "I0");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   994
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   995
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   996
    public void testA4() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   997
        compileSpec("D(C(Id0),Jd0(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   998
        assertLinkage("D", "J0");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
   999
        assertLinkage("C", "I0");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1000
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1001
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1002
    public void testA5() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1003
        compileSpec("C(A(Id0),Jd0)",
48352
9b700a5c4381 8057650: uniform error diagnostics for inconsistent inherited method signatures
mcimadamore
parents: 47216
diff changeset
  1004
                    "compiler.err.types.incompatible");
19931
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1005
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1006
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1007
    public void testA6() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1008
        compileSpec("C(A(Ia0,Jd0))",
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1009
                    "compiler.err.does.not.override.abstract",
48352
9b700a5c4381 8057650: uniform error diagnostics for inconsistent inherited method signatures
mcimadamore
parents: 47216
diff changeset
  1010
                    "compiler.err.types.incompatible");
19931
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1011
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1012
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1013
    public void testA7() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1014
        compileSpec("C(A(Id0,Jd0))",
48352
9b700a5c4381 8057650: uniform error diagnostics for inconsistent inherited method signatures
mcimadamore
parents: 47216
diff changeset
  1015
                    "compiler.err.types.incompatible");
19931
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1016
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1017
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1018
    public void testA8() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1019
        compileSpec("C(A(Ia0),J)", "compiler.err.does.not.override.abstract");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1020
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1021
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1022
    public void testA9() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1023
        compileSpec("C(Ac0(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1024
        assertLinkage("C", "A0");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1025
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1026
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1027
    public void testA10() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1028
        compileSpec("C(Aa0,I)", "compiler.err.does.not.override.abstract");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1029
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1030
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1031
    public void testA11() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1032
        compileSpec("C(Ac0,Id0)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1033
        assertLinkage("C", "A0");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1034
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1035
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1036
    // Dan's set B
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1037
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1038
    /* B1 can't be done, needs a second concrete class D
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1039
    public void testB1() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1040
        compileSpec("Cc1(Dc0)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1041
        assertLinkage("C", "C1", "C1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1042
        assertLinkage("D", "A0", LINKAGE_ERROR);
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1043
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1044
    */
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1045
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1046
    public void testB2() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1047
        compileSpec("Cc1(Ac0)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1048
        assertLinkage("C", "C1", "C1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1049
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1050
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1051
    //??? B3 seems to suggest that we should create an abstract class
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1052
    //public void testB3() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1053
    //    compileSpec("Ba1(Cc0)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1054
    //    assertLinkage("B", "C0", "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1055
    //}
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1056
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1057
    // B4 needs too many classes
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1058
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1059
    public void testB5() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1060
        compileSpec("Cc1(Aa1(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1061
        assertLinkage("C", "C1", "C1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1062
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1063
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1064
    public void testB6() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1065
        compileSpec("C(Ac1(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1066
        assertLinkage("C", "A1", "A1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1067
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1068
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1069
    public void testB7() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1070
        compileSpec("Cc1(Id0)");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1071
        assertLinkage("C", "C1", "C1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1072
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1073
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1074
    public void testB8() throws IOException, ReflectiveOperationException {
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1075
        compileSpec("C(Jd1(Id0))");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1076
        assertLinkage("C", "J1", "J1");
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1077
    }
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1078
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1079
    // B9 needs too many classes
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1080
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1081
    // The rest of Dan's tests need generics
f82b95ab8015 8015322: Javac template test framework
emc
parents:
diff changeset
  1082
}