I have a maven project configured to use Java 8 and all works fine, eclipse compiles code like:
Map map = new HashMap<>();
I had the same problem but the solution to set everything to default didn't work for me. What worked for me is Java > Editor > Content Assist > Advanced and unchecking JPA Proposals in the upper window.
Java > Editor > Content Assist > Advanced