8013404: Unclear spec for target typing with conditional operator (?:)

Fix previously ignored test

Reviewed-by: jjg, vromero
This commit is contained in:
Maurizio Cimadamore 2013-07-11 15:37:02 +01:00
parent 424ac16db0
commit 617386d568
2 changed files with 6 additions and 4 deletions

View File

@ -23,11 +23,10 @@
/* /*
* @test * @test
* @ignore 8013404: Test awaits spec clarification * @bug 8003280 8013404
* @bug 8003280
* @summary Add lambda tests * @summary Add lambda tests
* check that target type of cast is propagated to conditional subexpressions * check that target type of cast is not propagated to conditional subexpressions
* @compile TargetType36.java * @compile/fail/ref=TargetType36.out -XDrawDiagnostics TargetType36.java
*/ */
class TargetType36 { //awaits spec wording on cast vs. poly class TargetType36 { //awaits spec wording on cast vs. poly

View File

@ -0,0 +1,3 @@
TargetType36.java:40:30: compiler.err.unexpected.lambda
TargetType36.java:40:43: compiler.err.unexpected.lambda
2 errors