Thu, 11 Jul 2013 15:37:02 +0100
8013404: Unclear spec for target typing with conditional operator (?:)
Summary: Fix previously ignored test
Reviewed-by: jjg, vromero
test/tools/javac/lambda/TargetType36.java | file | annotate | diff | comparison | revisions | |
test/tools/javac/lambda/TargetType36.out | file | annotate | diff | comparison | revisions |
1.1 --- a/test/tools/javac/lambda/TargetType36.java Tue Jul 09 14:54:20 2013 -0700 1.2 +++ b/test/tools/javac/lambda/TargetType36.java Thu Jul 11 15:37:02 2013 +0100 1.3 @@ -23,11 +23,10 @@ 1.4 1.5 /* 1.6 * @test 1.7 - * @ignore 8013404: Test awaits spec clarification 1.8 - * @bug 8003280 1.9 + * @bug 8003280 8013404 1.10 * @summary Add lambda tests 1.11 - * check that target type of cast is propagated to conditional subexpressions 1.12 - * @compile TargetType36.java 1.13 + * check that target type of cast is not propagated to conditional subexpressions 1.14 + * @compile/fail/ref=TargetType36.out -XDrawDiagnostics TargetType36.java 1.15 */ 1.16 class TargetType36 { //awaits spec wording on cast vs. poly 1.17
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/test/tools/javac/lambda/TargetType36.out Thu Jul 11 15:37:02 2013 +0100 2.3 @@ -0,0 +1,3 @@ 2.4 +TargetType36.java:40:30: compiler.err.unexpected.lambda 2.5 +TargetType36.java:40:43: compiler.err.unexpected.lambda 2.6 +2 errors