langtools/test/tools/javac/NameCollision.java
author darcy
Sun, 14 Nov 2010 07:16:46 -0800 (2010-11-14)
changeset 7213 912fdd70fd2a
parent 6150 d055fa8ced62
permissions -rw-r--r--
6991528: Support making Throwable.suppressedExceptions immutable Reviewed-by: mcimadamore
/**
 * @test  /nodynamiccopyright/
 * @bug 4222327 4785453
 * @summary Interface names for classes in the same scope should not
 * cause the compiler to crash.
 *
 * @compile/fail/ref=NameCollision.out -XDrawDiagnostics NameCollision.java
 */

// The test fails if the compiler crashes.

public class NameCollision {
    class Runnable implements Runnable { } // ERROR
}