test/tools/javac/NonAmbiguousField/Test

Thu, 23 Oct 2008 17:59:43 +0100

author
mcimadamore
date
Thu, 23 Oct 2008 17:59:43 +0100
changeset 155
4d2d8b6459e1
parent 1
9a66ca7c79fa
permissions
-rw-r--r--

6711619: javac doesn't allow access to protected members in intersection types
Summary: Accordingly to new accessibility rules all members of intersection types (but private ones) should be accessible
Reviewed-by: jjg

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

mercurial