eclipse中不能识别enum 解决方法是在项目上右击-properties-java Compiler-勾选Enable project specific settings,然后修改jdk版本-apply-OK 不是window-preferences里修改