I just found another error compiling the code with JDK 1.8 with source code compatibility switched to 1.8 in my eclipse workspace. The external ant build is working because there is java version 1.7 defined as target in the macros.xml.
The error is an issue regarding generics in EntityFieldMap.java.
I will provide a patch her soon.
The code is the same in the release branches.