Mon, 31 Mar 2014 21:27:25 +0200
8035890: jdk8 javac -source 7 compiles test case it should not
Summary: Ensuring source level checks are performed in two additional cases related to type annotations, adding specialized error message for annotations after method type parameters.
Reviewed-by: jfranck, jjg
aoqi@0 | 1 | |
aoqi@0 | 2 | /** |
aoqi@0 | 3 | * This class is used to test the results of the langtools build. |
aoqi@0 | 4 | */ |
aoqi@0 | 5 | public class HelloWorld { |
aoqi@0 | 6 | |
aoqi@0 | 7 | public HelloWorld(); |
aoqi@0 | 8 | |
aoqi@0 | 9 | /** |
aoqi@0 | 10 | * The old standby! |
aoqi@0 | 11 | * @param args The parameters are ignored. |
aoqi@0 | 12 | */ |
aoqi@0 | 13 | public static void main(java.lang.String... args); |
aoqi@0 | 14 | |
aoqi@0 | 15 | /** |
aoqi@0 | 16 | * This declaration is for the benefit of javah tests. |
aoqi@0 | 17 | */ |
aoqi@0 | 18 | public native void test(); |
aoqi@0 | 19 | } |