来自一位同事的发现: Window->Preferences->Java->Compiler.把Compiler compliance level的级别改成1.6,每个工程属性里只要默认设置就行了,不要设置specific.