2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-07 19:44:20 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2020-10-28 17:18:46 +00:00
|
|
|
* @bug 5019609 8246774
|
2007-12-01 00:00:00 +00:00
|
|
|
* @summary javac fails to reject local enums
|
|
|
|
* @author gafter
|
2022-07-29 17:35:22 +00:00
|
|
|
* @compile/fail/ref=LocalEnum.out -XDrawDiagnostics --release 15 LocalEnum.java
|
2020-10-28 17:18:46 +00:00
|
|
|
* @compile LocalEnum.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class LocalEnum {
|
|
|
|
void f() {
|
|
|
|
enum B {}
|
|
|
|
}
|
|
|
|
}
|