jdk-24/langtools/test/tools/javac/NameCollision.java
Jonathan Gibbons ccd014ed3f 6971882: Remove -XDstdout from javac test
Reviewed-by: darcy
2010-07-26 14:18:45 -07:00

15 lines
371 B
Java

/**
* @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
}