Error:java: error: invalid source release: 13 using JDK12 with IntelliJ

后端 未结 3 2036
既然无缘
既然无缘 2021-01-02 08:09

I am trying to build a project with JDK-12 ea. While trying to execute a sample class:

public static void main(String[] args) {
    Scanner scanner = new Sc         


        
3条回答
  •  走了就别回头了
    2021-01-02 08:29

    In IDEA v2018.3.2 Preview language level added --enable-preview parameter to command line. In v2018.3.3 there is no 12 Preview level, so parameter has to be added manually as you correctly mentioned in your comment. Experimental features doesn't add any compilation parameters.

提交回复
热议问题