Eclipse pinches enum, although compiler compliance level is 1.6

I installed the Eclipse project Compiler compliance levelon 1.6

But I get the error, as in the screenshot below Syntax error, annotations are only available if source level is 1.5.

I updated / cleaned / restarted Eclipse at least 10 times.
It compiles fine with Maven2. The Eclipse project was created by Maven2.
The project uses java-6-openjdk

enter image description here

+5
source share
2 answers

Deleting the Eclipse project and re-importing it solved the problem.

+1
source

Another solution:

1) Set the JRE workspace to 1.5 (and apply / save). Projects will be restored.

2) JRE 1.6 ( /). .

.

+10

All Articles