< prev index next >

test/langtools/tools/javac/generics/inference/8176534/TestUncheckedCalls.java

Print this page

 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 import combo.ComboInstance;
 25 import combo.ComboParameter;
 26 import combo.ComboTask.Result;
 27 import combo.ComboTestHelper;
 28 
 29 import javax.lang.model.element.Element;
 30 import java.util.stream.Stream;
 31 
 32 /*
 33  * @test
 34  * @bug 8176534
 35  * @summary Missing check against target-type during applicability inference

 36  * @library /tools/javac/lib
 37  * @modules jdk.compiler/com.sun.tools.javac.api
 38  *          jdk.compiler/com.sun.tools.javac.file
 39  *          jdk.compiler/com.sun.tools.javac.util
 40  * @build combo.ComboTestHelper
 41  *
 42  * @run main TestUncheckedCalls
 43  */
 44 public class TestUncheckedCalls extends ComboInstance<TestUncheckedCalls> {
 45     enum InputExpressionKind implements ComboParameter {
 46         A("(A)null"),
 47         A_STRING("(A<String>)null"),
 48         B("(B)null"),
 49         B_STRING("(B<String>)null");
 50 
 51         String inputExpr;
 52 
 53         InputExpressionKind(String inputExpr) {
 54             this.inputExpr = inputExpr;
 55         }

 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 import combo.ComboInstance;
 25 import combo.ComboParameter;
 26 import combo.ComboTask.Result;
 27 import combo.ComboTestHelper;
 28 
 29 import javax.lang.model.element.Element;
 30 import java.util.stream.Stream;
 31 
 32 /*
 33  * @test
 34  * @bug 8176534
 35  * @summary Missing check against target-type during applicability inference
 36  * @enablePreview
 37  * @library /tools/javac/lib
 38  * @modules jdk.compiler/com.sun.tools.javac.api
 39  *          jdk.compiler/com.sun.tools.javac.file
 40  *          jdk.compiler/com.sun.tools.javac.util
 41  * @build combo.ComboTestHelper
 42  *
 43  * @run main TestUncheckedCalls
 44  */
 45 public class TestUncheckedCalls extends ComboInstance<TestUncheckedCalls> {
 46     enum InputExpressionKind implements ComboParameter {
 47         A("(A)null"),
 48         A_STRING("(A<String>)null"),
 49         B("(B)null"),
 50         B_STRING("(B<String>)null");
 51 
 52         String inputExpr;
 53 
 54         InputExpressionKind(String inputExpr) {
 55             this.inputExpr = inputExpr;
 56         }
< prev index next >