enum should not be used as an identifier since it is a reserved keyword from source level 1.5 on
2014-04-15 13:10
856 查看
【问题描述】
在Java代码中将变量名命名为enum,导致Eclipse报错:
enum' should not be used as an identifier since it is a reserved keyword from source level 1.5 on
【解决】
在工程属性中,将 Compiler compliance level 降为1.4,并且
Use default compliance settings
在Java代码中将变量名命名为enum,导致Eclipse报错:
enum' should not be used as an identifier since it is a reserved keyword from source level 1.5 on
【解决】
在工程属性中,将 Compiler compliance level 降为1.4,并且
Use default compliance settings
相关文章推荐
- iOS 整型转换警告"NSInteger' should not be used as format arguments; add an explicit cast to 'long' inste"
- What is an abstract class, and when should it be used?
- Actionscript Error: declaration must be contained within the <Declarations> tag, since it is not ass
- iOS之整型转换警告Values of type 'NSInteger' should not be used as format arguments;
- 解决App can’t be opened because it is from an unidentified developer
- You seem to not be depending on “@angular/core”. This is an error
- This event supports the .NET Framework infrastructure and is not intended to be used directly from your code?继承自VScrollbar的自定义winform控件,某些事件不触发的问题(Winform控件开发学习)
- Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
- unspecified on project XXX resolves to an APK archive which is not supported as a compilation depend
- [BS-15] Values of type 'NSInteger' should not be used as format arguments
- 【转】The final local variable xxx cannot be assigned, since it is defined in an enclosing type
- ios学习之路(知识点)Values of type 'NSInteger' should not be used as format arguments...
- (转)The final local variable xxx cannot be assigned, since it is defined in an enclosing type
- The bean 'xxx' could not be injected as a 'xxx'because it is a JDK dynamic proxy that
- The final local variable cannot be assigned, since it is defined in an enclosing type
- 【Angular2】You seem to not be depending on “@angular/core”. This is an error
- The final local variable xxx cannot be assigned, since it is defined in an enclosing type
- Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after p
- the `gets' function is dangerous and should not be used.
- 'Push segues can only be used when the source controller is managed by an instance of UINavigationC