langtools/test/tools/javac/ExtendsScope.java
author mchung
Wed, 27 May 2015 13:25:18 -0700
changeset 30846 2b3f379840f0
parent 26528 a1a7ad15183e
permissions -rw-r--r--
8074432: Move jdeps and javap to jdk.jdeps module Reviewed-by: jjg, alanb, erikj

/*
 * @test /nodynamiccopyright/
 * @bug 4402884
 * @summary javac improperly extends superclass's scope to implements clause
 * @author gafter
 *
 * @clean I
 * @compile/fail/ref=ExtendsScope.out -XDrawDiagnostics ExtendsScope.java
 */

class P {
    interface I {}
}

class T extends P implements I { // error: no I in scope
}