2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-07 19:44:20 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 5071831
|
|
|
|
* @summary javac allows enum in an inner class
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-07-07 19:44:20 +00:00
|
|
|
* @compile/fail/ref=NestedEnum.out -XDrawDiagnostics NestedEnum.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class NestedEnum {
|
|
|
|
class Inner {
|
|
|
|
enum NotAllowedInNonStaticInner {}
|
|
|
|
}
|
|
|
|
}
|