[java] improves "unsupported language level" message (IDEA-168859)

This commit is contained in:
Roman Shevchenko
2017-03-06 11:27:27 +01:00
parent f445fe460d
commit 74daf8d522
15 changed files with 252 additions and 214 deletions
@@ -15,7 +15,7 @@ abstract class C {
void notWrong() { }
}
class B extends <error descr="Type annotations are not supported at this language level">@Deprecated</error> Object { }
class B extends <error descr="Type annotations are not supported at language level '1.7'">@Deprecated</error> Object { }
enum E {
@Anno E1
@@ -24,7 +24,7 @@ enum E {
interface I {
@<error descr="Duplicate annotation">Anno</error>
public @<error descr="Duplicate annotation">Anno</error>
Collection<<error descr="Type annotations are not supported at this language level">@Anno</error> String>
Collection<<error descr="Type annotations are not supported at language level '1.7'">@Anno</error> String>
method(@<error descr="Duplicate annotation">Anno</error> @<error descr="Duplicate annotation">Anno</error> Object o);
}
@@ -36,4 +36,4 @@ interface I {
@interface Part { }
Part[] arrayValue() default {@Part, @Part};
}
}