[java] merges language level name and JDK version description

This commit is contained in:
Roman Shevchenko
2018-01-18 13:54:45 +01:00
parent c86688b5e6
commit 9f05380c48
10 changed files with 35 additions and 39 deletions
@@ -1,14 +1,14 @@
class Test {
interface I {
<error descr="Extension methods are not supported at language level '1.7'">static void foo() {}</error>
<error descr="Extension methods are not supported at language level '7'">static void foo() {}</error>
}
abstract static class IImpl implements I {}
interface I2 extends I {}
{
I.<error descr="Static interface method calls are not supported at language level '1.7'">foo</error>();
IImpl.<error descr="Static interface method calls are not supported at language level '1.7'">foo</error>();
I2.<error descr="Static interface method calls are not supported at language level '1.7'">foo</error>();
I.<error descr="Static interface method calls are not supported at language level '7'">foo</error>();
IImpl.<error descr="Static interface method calls are not supported at language level '7'">foo</error>();
I2.<error descr="Static interface method calls are not supported at language level '7'">foo</error>();
}
}
@@ -2,6 +2,6 @@ import java.io.Serializable;
class IntersectionTypeCast {
void m(Runnable r) {
Object o = <error descr="Intersection types in casts are not supported at language level '1.7'">(Runnable & Serializable)r</error>;
Object o = <error descr="Intersection types in casts are not supported at language level '7'">(Runnable & Serializable)r</error>;
}
}