[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 09:54:12 +02:00
parent 6296977fea
commit f7f0a5c0c4
33 changed files with 491 additions and 86 deletions

View File

@@ -15,7 +15,6 @@ class C {
@interface Anno { String f(Anno this); }
void m0() {
try (Object <error descr="Receivers are not allowed outside of method parameter list">this</error>) { }
Runnable r = (C <error descr="Receivers are not allowed outside of method parameter list">C.this</error>) -> { };
}