test/tools/javac/NonAmbiguousField/Test

Fri, 28 Jan 2011 12:01:07 +0000

author
mcimadamore
date
Fri, 28 Jan 2011 12:01:07 +0000
changeset 844
2088e674f0e0
parent 1
9a66ca7c79fa
permissions
-rw-r--r--

6910550: javac 1.5.0_17 fails with incorrect error message
Summary: multiple clashing members declared in same class should be added to the class' scope in order to avoid downstream spurious diagnostics
Reviewed-by: jjg

     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 -nowrite one/Parent.java two/Child.java
     9  * @compile -nowrite one/Parent2.java two/Child2.java
    10  */

mercurial