test/tools/javac/policy/Test.java

Sat, 01 Dec 2007 00:00:00 +0000

author
duke
date
Sat, 01 Dec 2007 00:00:00 +0000
changeset 1
9a66ca7c79fa
permissions
-rw-r--r--

Initial load

     1 /*
     2  * Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     8  *
     9  * This code is distributed in the hope that it will be useful, but WITHOUT
    10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    12  * version 2 for more details (a copy is included in the LICENSE file that
    13  * accompanied this code).
    14  *
    15  * You should have received a copy of the GNU General Public License version
    16  * 2 along with this work; if not, write to the Free Software Foundation,
    17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    18  *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
    22  */
    24 /*
    25  * @test
    26  * @bug 6260188 6290772
    27  * @summary provide variable policies for javac operation
    28  *              Default compile policy is now "by file" (reverted to "todo" for 6382700)
    29  *              Because of attr errors in B, no code should be generated
    30  * @compile/fail/ref=bytodo.ABD.out -XDstdout -XDrawDiagnostics -XDverboseCompilePolicy A.java B.java D.java
    31  */
    33 /*
    34  * @test
    35  * @bug 6260188
    36  * @summary provide variable policies for javac operation
    37  *              Generate code for A, A1, A2, B
    38  * @compile/fail/ref=bytodo.ABD.out -XDstdout -XDrawDiagnostics -XDverboseCompilePolicy -XDcompilePolicy=bytodo A.java B.java D.java
    39  */
    41 /*
    42  * @test
    43  * @bug 6260188
    44  * @summary provide variable policies for javac operation
    45  *              Because of attr errors in B, no code should be generated
    46  * @compile/fail/ref=simple.ABD.out -XDstdout -XDrawDiagnostics -XDverboseCompilePolicy -XDcompilePolicy=simple A.java B.java D.java
    47  */
    49 /*
    50  * @test
    51  * @bug 6260188
    52  * @summary provide variable policies for javac operation
    53  *              Because of attr errors in B, no code should be generated
    54  * @compile/fail/ref=byfile.ABD.out -XDstdout -XDrawDiagnostics -XDverboseCompilePolicy -XDcompilePolicy=byfile A.java B.java D.java
    55  */
    60 /*
    61  * @test
    62  * @bug 6260188 6290772
    63  * @summary provide variable policies for javac operation
    64  *              Default compile policy is now "by file" (reverted to "todo" for 6382700)
    65  *              Generate code for A, A1, A2, but because of flow errors in C, no more code should be generated
    66  * @compile/fail/ref=bytodo.ACD.out -XDstdout -XDrawDiagnostics -XDverboseCompilePolicy A.java C.java D.java
    67  */
    69 /*
    70  * @test
    71  * @bug 6260188
    72  * @summary provide variable policies for javac operation
    73  *              Generate code for A, A1, A2, C
    74  * @compile/fail/ref=bytodo.ACD.out -XDstdout -XDrawDiagnostics -XDverboseCompilePolicy -XDcompilePolicy=bytodo A.java C.java D.java
    75  */
    77 /*
    78  * @test
    79  * @bug 6260188
    80  * @summary provide variable policies for javac operation
    81  *              Because of flow errors in C, no code should be generated
    82  * @compile/fail/ref=simple.ACD.out -XDstdout -XDrawDiagnostics -XDverboseCompilePolicy -XDcompilePolicy=simple A.java C.java D.java
    83  */
    85 /*
    86  * @test
    87  * @bug 6260188
    88  * @summary provide variable policies for javac operation
    89  *              Generate code for A, A1, A2, but because of flow errors in C, no more code should be generated
    90  * @compile/fail/ref=byfile.ACD.out -XDstdout -XDrawDiagnostics -XDverboseCompilePolicy -XDcompilePolicy=byfile A.java C.java D.java
    91  */

mercurial