Nishant Jalan
Nishant Jalan

Reputation: 1038

Different Project SDK and Language Level

I have recently downloaded IntelliJ IDEA (2018 version) and Java JDK 12. When I was configuring IntelliJ with JDK 12, the Project Language level is stuck at Java 9. Hence, I cannot use the new features in Java 12.

I have searched about this issue over the Internet, but this problem has not yet been identified, mostly because JDK 12 was released just last week (2019 March 19).

Project Structure: Project Structure

Upvotes: 0

Views: 411

Answers (1)

Ruslan
Ruslan

Reputation: 6300

To use new language feature of java12 you need Intellij Idea 2019.1 which has Java 12 Switch Expressions (Preview) support. Then in project structure you could select language level:

enter image description here

Upvotes: 3

Related Questions