test/tools/javac/NonAmbiguousField/Test.java

Fri, 05 Jul 2013 11:04:22 +0100

author
mcimadamore
date
Fri, 05 Jul 2013 11:04:22 +0100
changeset 1890
bfbedbfc522a
parent 1775
08daea43a7f8
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8016702: use of ternary operator in lambda expression gives incorrect results
Summary: Constant types erroneously creep in during inference
Reviewed-by: jjg, vromero

     1 /*
     2  * @test
     3  * @bug 4053724
     4  * @summary Certain non-ambiguous field references were reported by the
     5  *          compiler as ambigous.
     6  * @author turnidge
     7  *
     8  * @compile one/Parent.java two/Child.java
     9  * @compile/fail one/Parent2.java two/Child2.java
    10  */

mercurial