The reason is, that Java 1.5 does not support overriding interface methods.
https://stackoverflow.com/a/212642/1283492
From Java 1.6 onwards it is allowed. Thus as already stated by easycheese, one needs to put Java 1.6 or higher in the java compiler settings of the project properties.