Tue, 10 Apr 2012 08:15:25 -0700
7074397: Build infrastructure changes (makefile re-write)
Summary: New makefiles transition, old and new living side by side for now.
Reviewed-by: ohair, jjg, dholmes, ohrstrom, erikj, ihse, tgranat, ykantser
Contributed-by: ohrstrom <fredrik.ohrstrom@oracle.com>, erikj <erik.joelsson@oracle.com>, ihse <magnus.ihse.bursie@oracle.com>, tgranat <torbjorn.granat@oracle.com>, ykantser <yekaterina.kantserova@oracle.com>
duke@1 | 1 | /** |
duke@1 | 2 | * @test /nodynamiccopyright/ |
duke@1 | 3 | * @bug 4241231 4785453 |
duke@1 | 4 | * @summary Make sure the compiler scans for deprecated tag in legal |
duke@1 | 5 | * docComment only |
duke@1 | 6 | * @author Jing Qian |
duke@1 | 7 | * |
jjg@69 | 8 | * @compile DeprecatedDocComment2.java |
jjg@611 | 9 | * @compile/fail/ref=DeprecatedDocComment.out -XDrawDiagnostics -Werror -deprecation DeprecatedDocComment.java |
duke@1 | 10 | */ |
duke@1 | 11 | |
duke@1 | 12 | // WARNING: This file needs to be compiled with the -deprecation flag on. |
duke@1 | 13 | // DeprecatedDocCommentTest2.java in test/tools/javac/depDocComment/ |
duke@1 | 14 | // should be compiled first before this file can be compiled. This is because |
duke@1 | 15 | // the compiler *does not* issue deprecation warnings for a file currently |
duke@1 | 16 | // being compiled. |
duke@1 | 17 | |
duke@1 | 18 | // The test passes iff the compile issues deprecation warnings for |
duke@1 | 19 | // deprecatedTest 1, 5, and 6; and fails with an unclosed comment error |
duke@1 | 20 | // The test does not need to be run. |
duke@1 | 21 | |
duke@1 | 22 | //import depDocComment.*; |
duke@1 | 23 | |
duke@1 | 24 | public class DeprecatedDocComment { |
duke@1 | 25 | |
duke@1 | 26 | public static void main(String argv[]) { |
duke@1 | 27 | DeprecatedDocComment2.deprecatedTest1(); |
duke@1 | 28 | DeprecatedDocComment2.deprecatedTest2(); |
duke@1 | 29 | DeprecatedDocComment2.deprecatedTest3(); |
duke@1 | 30 | DeprecatedDocComment2.deprecatedTest4(); |
duke@1 | 31 | DeprecatedDocComment2.deprecatedTest5(); |
duke@1 | 32 | DeprecatedDocComment2.deprecatedTest6(); |
duke@1 | 33 | DeprecatedDocComment2.deprecatedTest7(); |
duke@1 | 34 | DeprecatedDocComment2.deprecatedTest8(); |
duke@1 | 35 | } |
duke@1 | 36 | |
duke@1 | 37 | } |