8bde2f4e3d
Co-authored-by: Vicente Romero <vromero@openjdk.org> Co-authored-by: Harold Seigel <hseigel@openjdk.org> Co-authored-by: Chris Hegarty <chegar@openjdk.org> Reviewed-by: jlahoda
15 lines
298 B
Java
15 lines
298 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 5019609 8246774
|
|
* @summary javac fails to reject local enums
|
|
* @author gafter
|
|
* @compile/fail/ref=LocalEnum.out -XDrawDiagnostics -source 15 LocalEnum.java
|
|
* @compile LocalEnum.java
|
|
*/
|
|
|
|
public class LocalEnum {
|
|
void f() {
|
|
enum B {}
|
|
}
|
|
}
|