[java] adds support for Java 9's improved try-with-resources (IDEA-140266)

PSI, parser, highlighting, exception analysis, control flow, completion.
This commit is contained in:
Roman Shevchenko
2015-07-22 16:28:39 +02:00
parent 6296977fea
commit f7f0a5c0c4
33 changed files with 491 additions and 86 deletions
@@ -0,0 +1,8 @@
import java.io.*;
class UnsupportedFeatures {
void m() throws Exception {
Reader r1 = new FileReader("/dev/null");
try (<error descr="Resource references are not supported at this language level">r1</error>; Reader r2 = new FileReader("/dev/null")) { }
}
}