If you look at the javac Java compiler command options, you will see that -source and -source options allow you to compile alternative versions of Java. I'm not sure which parameter matches the IntelliJ language level (this is most likely -source ), but essentially tells IntelliJ to use the provided Java SDK (in the Project SDK field) in the specified version of the Java language instead of the last provided by the mentioned SDK.
So, if you have Java 7 installed, you can set the language level to 6.0 , and IntelliJ will compile your code according to the Java 6 specification instead of the Java 7 specification. This includes all the real-time suggestions and code verification performed as you type.
The Java 8 option is probably related to the fact that beta versions of Java 8 are available for testing.
I have never experimented with what will happen if you set the language level to something more than the JDK version.
ajp15243 Jul 18 '13 at 4:55 2013-07-18 04:55
source share