I am using java 1.7 in intellij and it gives me a compilation error as if I am using pre-1.7. Saying: "Incompatible type. Found java.lang.String. Required 'byte, char, short or int'.
I jerk my brain, trying to understand why this is so. Thanks
You need to change the language level in your IDE.
Check these settings:
. :
maven, -. pom.xml.
pom.xml
, , java- java 1.6 . java 1.7
, JDK JDK , IDE intellij. , JDK 1.7 , - JDK