duke@1: /** duke@1: * @test /nodynamiccopyright/ duke@1: * @bug 4222327 4785453 duke@1: * @summary Interface names for classes in the same scope should not duke@1: * cause the compiler to crash. duke@1: * jjg@611: * @compile/fail/ref=NameCollision.out -XDrawDiagnostics NameCollision.java duke@1: */ duke@1: duke@1: // The test fails if the compiler crashes. duke@1: duke@1: public class NameCollision { duke@1: class Runnable implements Runnable { } // ERROR duke@1: }