langtools/test/tools/javac/NameCollision.java
author jjg
Wed, 01 Jun 2011 11:25:50 -0700 (2011-06-01)
changeset 9814 978b696e85ad
parent 6150 d055fa8ced62
permissions -rw-r--r--
7042623: Regression: javac silently crash when attributing non-existent annotation 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
}