IntelliJ IDE gives error when using Try-Catch with Resources

前端 未结 5 642
栀梦
栀梦 2020-12-13 08:30

I am attempting to use JDK 7\'s \"try-catch with resources\" statement; IntelliJ highlights my resource line, saying

Try-with-resources are not supp

5条回答
  •  有刺的猬
    2020-12-13 09:11

    Besides mentioned instructions I also had to specify language level per module as well. File -> Project Structure -> Modules

提交回复
热议问题