NameCollision.java revision 610
0N/A/**
0N/A * @test /nodynamiccopyright/
0N/A * @bug 4222327 4785453
0N/A * @summary Interface names for classes in the same scope should not
0N/A * cause the compiler to crash.
0N/A *
610N/A * @compile/fail/ref=NameCollision.out -XDrawDiagnostics NameCollision.java
0N/A */
0N/A
0N/A// The test fails if the compiler crashes.
0N/A
0N/Apublic class NameCollision {
0N/A class Runnable implements Runnable { } // ERROR
0N/A}