I\'m using IntelliJ IDEA Ultimate 2016.2.1, have set Project SDK to my 1.8 version, Project Language Level to 8, Module SDK to my 1.8 version, and JDK home path to /Library/Java
Make sure your try-with-resources is using the correct semantics. For instance, this:
try (new BufferedReader(request.getReader())) { }
will produce that same error message.