# HG changeset patch # User mcimadamore # Date 1373553422 -3600 # Node ID 87a951c88a3307f4d10f9ab67fb3ee2ec6739fb3 # Parent aedb3bb327d591491f631e4d1df89641d3882bdd 8013404: Unclear spec for target typing with conditional operator (?:) Summary: Fix previously ignored test Reviewed-by: jjg, vromero diff -r aedb3bb327d5 -r 87a951c88a33 test/tools/javac/lambda/TargetType36.java --- a/test/tools/javac/lambda/TargetType36.java Tue Jul 09 14:54:20 2013 -0700 +++ b/test/tools/javac/lambda/TargetType36.java Thu Jul 11 15:37:02 2013 +0100 @@ -23,11 +23,10 @@ /* * @test - * @ignore 8013404: Test awaits spec clarification - * @bug 8003280 + * @bug 8003280 8013404 * @summary Add lambda tests - * check that target type of cast is propagated to conditional subexpressions - * @compile TargetType36.java + * check that target type of cast is not propagated to conditional subexpressions + * @compile/fail/ref=TargetType36.out -XDrawDiagnostics TargetType36.java */ class TargetType36 { //awaits spec wording on cast vs. poly diff -r aedb3bb327d5 -r 87a951c88a33 test/tools/javac/lambda/TargetType36.out --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/lambda/TargetType36.out Thu Jul 11 15:37:02 2013 +0100 @@ -0,0 +1,3 @@ +TargetType36.java:40:30: compiler.err.unexpected.lambda +TargetType36.java:40:43: compiler.err.unexpected.lambda +2 errors