I'm using java 1.7 in intellij and it's giving me a compile error as if I'm using pre-1.7. Saying, "Incompatible type. Found 'java.lang.String'. required 'byte, char, short, or int'.
I'm rattling my brain trying to figure out why this is. Thanks
You need to change language level in your IDE.
Check these settings:
Also check compiler settings. Sometimes it adds extra arguments to compiler:
If you use maven plugin enable auto-import. Then the language level will be detected automatically from your pom.xml
settings.
In your project settings most probably you use java compiler java 1.6 or prior. Change that to java 1.7
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With