langtools/test/tools/javac/classfiles/attributes/Signature/ConstructorTest.java
author jjg
Thu, 31 Mar 2016 15:20:50 -0700
changeset 36778 e04318f39f92
parent 36526 3b41f1c69604
permissions -rw-r--r--
8152897: refactor ToolBox to allow reduced documented dependencies Reviewed-by: vromero
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29637
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
     1
/*
36778
e04318f39f92 8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents: 36526
diff changeset
     2
 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
29637
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
     4
 *
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
     7
 * published by the Free Software Foundation.
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
     8
 *
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    13
 * accompanied this code).
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    14
 *
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    18
 *
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    21
 * questions.
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    22
 */
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    23
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    24
/*
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    25
 * @test
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    26
 * @bug 8049238
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    27
 * @summary Checks Signature attribute for constructors.
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    28
 * @library /tools/lib /tools/javac/lib ../lib
35359
f04501964016 8148147: Sync up @modules from jigsaw/jake
alanb
parents: 30846
diff changeset
    29
 * @modules jdk.compiler/com.sun.tools.javac.api
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 29637
diff changeset
    30
 *          jdk.compiler/com.sun.tools.javac.main
35359
f04501964016 8148147: Sync up @modules from jigsaw/jake
alanb
parents: 30846
diff changeset
    31
 *          jdk.jdeps/com.sun.tools.classfile
36778
e04318f39f92 8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents: 36526
diff changeset
    32
 * @build toolbox.ToolBox InMemoryFileManager TestResult TestBase
29637
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    33
 * @build ConstructorTest Driver ExpectedSignature ExpectedSignatureContainer
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    34
 * @run main Driver ConstructorTest
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    35
 */
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    36
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    37
import java.lang.ref.ReferenceQueue;
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    38
import java.util.*;
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    39
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    40
@ExpectedSignature(descriptor = "ConstructorTest", signature = "<T:Ljava/lang/Object;>Ljava/lang/Object;")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    41
public class ConstructorTest<T> {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    42
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    43
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, boolean)", signature = "(TT;Z)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    44
    ConstructorTest(T a, boolean b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    45
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    46
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    47
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, byte)", signature = "(TT;B)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    48
    ConstructorTest(T a, byte b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    49
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    50
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    51
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, char)", signature = "(TT;C)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    52
    ConstructorTest(T a, char b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    53
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    54
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    55
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, short)", signature = "(TT;S)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    56
    ConstructorTest(T a, short b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    57
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    58
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    59
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, int)", signature = "(TT;I)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    60
    ConstructorTest(T a, int b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    61
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    62
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    63
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, long)", signature = "(TT;J)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    64
    ConstructorTest(T a, long b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    65
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    66
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    67
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, float)", signature = "(TT;F)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    68
    ConstructorTest(T a, float b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    69
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    70
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    71
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, double)", signature = "(TT;D)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    72
    ConstructorTest(T a, double b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    73
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    74
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    75
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, java.lang.Runnable)", signature = "(TT;Ljava/lang/Runnable;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    76
    ConstructorTest(T a, Runnable r) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    77
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    78
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    79
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, boolean[])", signature = "(TT;[Z)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    80
    ConstructorTest(T a, boolean[] b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    81
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    82
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    83
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, byte[])", signature = "(TT;[B)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    84
    ConstructorTest(T a, byte[] b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    85
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    86
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    87
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, char[])", signature = "(TT;[C)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    88
    ConstructorTest(T a, char[] b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    89
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    90
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    91
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, short[])", signature = "(TT;[S)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    92
    ConstructorTest(T a, short[] b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    93
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    94
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    95
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, int[])", signature = "(TT;[I)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    96
    ConstructorTest(T a, int[] b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    97
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    98
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
    99
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, long[])", signature = "(TT;[J)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   100
    ConstructorTest(T a, long[] b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   101
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   102
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   103
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, float[])", signature = "(TT;[F)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   104
    ConstructorTest(T a, float[] b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   105
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   106
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   107
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, double[])", signature = "(TT;[D)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   108
    ConstructorTest(T a, double[] b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   109
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   110
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   111
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, java.lang.Runnable[])", signature = "(TT;[Ljava/lang/Runnable;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   112
    ConstructorTest(T a, Runnable[] r) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   113
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   114
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   115
    @ExpectedSignature(descriptor = "<init>(java.lang.Object[])", signature = "([TT;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   116
    ConstructorTest(T[] a) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   117
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   118
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   119
    @ExpectedSignature(descriptor = "<init>(java.lang.Runnable[])",
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   120
            signature = "<T::Ljava/lang/Runnable;>([TT;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   121
    <T extends Runnable> ConstructorTest(T...a) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   122
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   123
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   124
    @ExpectedSignature(descriptor = "<init>(java.util.Map)", signature = "(Ljava/util/Map<**>;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   125
    ConstructorTest(Map<?, ?> a) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   126
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   127
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   128
    @ExpectedSignature(descriptor = "<init>(java.lang.Object)", signature = "(TT;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   129
    ConstructorTest(T a) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   130
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   131
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   132
    @ExpectedSignature(descriptor = "<init>(java.util.Set, java.util.Set)",
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   133
            signature = "<E::Ljava/util/Set<+TT;>;>(TE;TE;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   134
    <E extends Set<? extends T>> ConstructorTest(E a, E b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   135
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   136
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   137
    @ExpectedSignature(descriptor = "<init>(java.lang.ref.ReferenceQueue, java.lang.ref.ReferenceQueue)",
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   138
            signature = "<E:Ljava/lang/ref/ReferenceQueue<-TT;>;:Ljava/util/Map<-TT;+TT;>;>(TE;TE;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   139
    <E extends ReferenceQueue<? super T> & Map<? super T, ? extends T>> ConstructorTest(E a, E b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   140
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   141
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   142
    @ExpectedSignature(descriptor = "<init>(java.util.List)", signature = "(Ljava/util/List<+TT;>;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   143
    ConstructorTest(List<? extends T> b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   144
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   145
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   146
    @ExpectedSignature(descriptor = "<init>(java.util.Set)", signature = "(Ljava/util/Set<-TT;>;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   147
    ConstructorTest(Set<? super T> b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   148
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   149
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   150
    @ExpectedSignature(descriptor = "<init>(java.lang.Runnable)", signature = "<E::Ljava/lang/Runnable;>(TE;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   151
    <E extends Runnable> ConstructorTest(E a) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   152
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   153
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   154
    @ExpectedSignature(descriptor = "<init>(java.lang.Object, java.lang.Object)", signature = "<E:TT;>(TT;TE;)V")
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   155
    <E extends T> ConstructorTest(T a, E b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   156
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   157
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   158
    // no Signature attribute
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   159
    ConstructorTest(boolean b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   160
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   161
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   162
    // no Signature attribute
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   163
    ConstructorTest(HashMap a) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   164
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   165
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   166
    // no Signature attribute
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   167
    ConstructorTest(boolean[] b) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   168
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   169
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   170
    // no Signature attribute
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   171
    ConstructorTest(HashMap[] a) {
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   172
    }
c03745b71c70 8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff changeset
   173
}