< prev index next >

test/tools/javac/varargs/7043922/T7043922.java

Print this page


   1 /*
   2  * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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 7043922
  27  * @summary Regression: internal compiler error for nested anonymous inner class featuring varargs constructor
  28  * @modules jdk.compiler/com.sun.tools.javac.api
  29  *          jdk.compiler/com.sun.tools.javac.file
  30  *          jdk.compiler/com.sun.tools.javac.util
  31  * @run main/othervm T7043922
  32  */
  33 
  34 import com.sun.source.util.JavacTask;
  35 import com.sun.tools.javac.api.JavacTool;
  36 import com.sun.tools.javac.util.List;
  37 
  38 import java.net.URI;
  39 import java.util.Arrays;
  40 import java.util.Locale;
  41 import javax.tools.Diagnostic;
  42 import javax.tools.JavaCompiler;
  43 import javax.tools.JavaFileObject;
  44 import javax.tools.SimpleJavaFileObject;
  45 import javax.tools.StandardJavaFileManager;
  46 import javax.tools.ToolProvider;
  47 
  48 public class T7043922 {
  49 
  50     ClassKind[] classKinds;
  51     ConstructorKind[] constructorKinds;


   1 /*
   2  * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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 7043922
  27  * @summary Regression: internal compiler error for nested anonymous inner class featuring varargs constructor
  28  * @modules jdk.compiler/com.sun.tools.javac.api
  29  *          jdk.compiler/com.sun.tools.javac.file
  30  *          jdk.compiler/com.sun.tools.javac.util

  31  */
  32 
  33 import com.sun.source.util.JavacTask;
  34 import com.sun.tools.javac.api.JavacTool;
  35 import com.sun.tools.javac.util.List;
  36 
  37 import java.net.URI;
  38 import java.util.Arrays;
  39 import java.util.Locale;
  40 import javax.tools.Diagnostic;
  41 import javax.tools.JavaCompiler;
  42 import javax.tools.JavaFileObject;
  43 import javax.tools.SimpleJavaFileObject;
  44 import javax.tools.StandardJavaFileManager;
  45 import javax.tools.ToolProvider;
  46 
  47 public class T7043922 {
  48 
  49     ClassKind[] classKinds;
  50     ConstructorKind[] constructorKinds;


< prev index next >