I had been compiling and developing with Java 8 by accident.