The problem should go away if u r using JDK1.7 .Try following the below steps and see
- Open the project properties
- Click on "Java Compiler"
- Checkmark "Enable project specific settings"
- Set all of the drop down menus to 1.7
- Hit ok
- Clean the project to trigger a rebuild
If u do below , then the problem reappears.
- Open the project properties
- Click on "Java Compiler"
- Clear "Enable project specific settings"
- Hit ok
- Clean the project to trigger a rebuild (it will rebuild automatically)
Here's what I see if I do the following...
- Open the project properties
- Click on "Java Compiler"
- Click on "Configure Workspace Settings"
- I see that the "Compiler compliance level" = 1.7
- I see that "Use default compliance settings" is checked.
Hope this helps!!