< prev index next >

langtools/test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest1.java

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8005085 8005877 8004829 8005681 8006734 8006775
  27  * @summary Combinations of Target ElementTypes on (repeated)type annotations.
  28  * @modules jdk.compiler/com.sun.tools.classfile
  29  */
  30 
  31 import com.sun.tools.classfile.*;
  32 import java.io.File;
  33 
  34 public class CombinationsTargetTest1 extends ClassfileTestHelper {
  35 
  36     // Test count helps identify test case in event of failure.
  37     int testcount = 0;
  38 
  39     // Base test case template descriptions
  40     enum srce  {
  41         src1("(repeating) type annotations at class level"),
  42         src2("(repeating) type annotations on method"),
  43         src3("(repeating) type annotations on wildcard, type arguments in anonymous class"),
  44         src4("(repeating) type annotations on type parameters, bounds and  type arguments on class decl"),
  45         src5("(repeating) type annotations on type parameters, bounds and  type arguments on method"),
  46         src6("(repeating) type annotations on type parameters, bounds and  type arguments in method");
  47 
  48         String description;




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8005085 8005877 8004829 8005681 8006734 8006775
  27  * @summary Combinations of Target ElementTypes on (repeated)type annotations.
  28  * @modules jdk.jdeps/com.sun.tools.classfile
  29  */
  30 
  31 import com.sun.tools.classfile.*;
  32 import java.io.File;
  33 
  34 public class CombinationsTargetTest1 extends ClassfileTestHelper {
  35 
  36     // Test count helps identify test case in event of failure.
  37     int testcount = 0;
  38 
  39     // Base test case template descriptions
  40     enum srce  {
  41         src1("(repeating) type annotations at class level"),
  42         src2("(repeating) type annotations on method"),
  43         src3("(repeating) type annotations on wildcard, type arguments in anonymous class"),
  44         src4("(repeating) type annotations on type parameters, bounds and  type arguments on class decl"),
  45         src5("(repeating) type annotations on type parameters, bounds and  type arguments on method"),
  46         src6("(repeating) type annotations on type parameters, bounds and  type arguments in method");
  47 
  48         String description;


< prev index next >