jdk-24/langtools/test/tools/javac/NameCollision.java
2007-12-01 00:00:00 +00:00

15 lines
326 B
Java

/**
* @test /nodynamiccopyright/
* @bug 4222327 4785453
* @summary Interface names for classes in the same scope should not
* cause the compiler to crash.
*
* @run shell NameCollision.sh
*/
// The test fails if the compiler crashes.
public class NameCollision {
class Runnable implements Runnable { } // ERROR
}