Java 7 compilation problem

I have seen that even though the language selected for submission is Java7, the compiler is not able to
identify the newer syntax of Diamond operator, underscores in integer literal values etc.

Map<Integer, Integer> map = new HashMap<>();

private final int MOD = 1000_000_009;

It throws compilation error for these.

Why is it?

//