mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
[java] merges language level name and JDK version description
This commit is contained in:
+5
-5
@@ -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>();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user