langtools/test/tools/javac/mandatoryWarnings/unchecked/Test.java
changeset 10 06bc494ca11e
child 5520 86e4b9a9da40
equal deleted inserted replaced
0:fd16c54261b3 10:06bc494ca11e
       
     1 /*
       
     2  * Copyright 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  */
       
    23 
       
    24 // This file is not executed directly; it just exists to contain the
       
    25 // set of test descriptions
       
    26 
       
    27 /*
       
    28  * @test
       
    29  * @bug 5047307
       
    30  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
    31  * @compile/ref=Test1.out -XDstdout -XDrawDiagnostics A.java
       
    32  */
       
    33 
       
    34 /*
       
    35  * @test
       
    36  * @bug 5047307
       
    37  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
    38  * @compile/ref=Test1.out -XDstdout -XDrawDiagnostics -nowarn A.java
       
    39  */
       
    40 
       
    41 /*
       
    42  * @test
       
    43  * @bug 5047307
       
    44  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
    45  * @compile/ref=Test1.out -XDstdout -XDrawDiagnostics -Xmaxwarns 1 A.java
       
    46  */
       
    47 
       
    48 /*
       
    49  * @test
       
    50  * @bug 5047307
       
    51  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
    52  * @compile/ref=Test2.out -XDstdout -XDrawDiagnostics A.java B.java
       
    53  */
       
    54 
       
    55 /*
       
    56  * @test
       
    57  * @bug 5047307
       
    58  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
    59  * @compile/ref=Test2.out -XDstdout -XDrawDiagnostics -nowarn A.java B.java
       
    60  */
       
    61 
       
    62 /*
       
    63  * @test
       
    64  * @bug 5047307
       
    65  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
    66  * @compile/ref=Test2.out -XDstdout -XDrawDiagnostics -Xmaxwarns 1 A.java B.java
       
    67  */
       
    68 
       
    69 /*
       
    70  * @test
       
    71  * @bug 5047307
       
    72  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
    73  * @compile/ref=Test3.out -XDstdout -XDrawDiagnostics -Xlint:unchecked A.java
       
    74  */
       
    75 
       
    76 /*
       
    77  * @test
       
    78  * @bug 5047307
       
    79  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
    80  * @compile/ref=Test3.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:unchecked A.java
       
    81  */
       
    82 
       
    83 /*
       
    84  * @test
       
    85  * @bug 5047307
       
    86  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
    87  * @compile/ref=Test3b.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 1 A.java
       
    88  */
       
    89 
       
    90 /*
       
    91  * @test
       
    92  * @bug 5047307
       
    93  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
    94  * @compile/ref=Test4.out -XDstdout -XDrawDiagnostics -Xlint:unchecked A.java B.java
       
    95  */
       
    96 
       
    97 /*
       
    98  * @test
       
    99  * @bug 5047307
       
   100  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
   101  * @compile/ref=Test4.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:unchecked A.java B.java
       
   102  */
       
   103 
       
   104 /*
       
   105  * @test
       
   106  * @bug 5047307
       
   107  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
   108  * @compile/ref=Test4b.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 1 A.java B.java
       
   109  */
       
   110 
       
   111 /*
       
   112  * @test
       
   113  * @bug 5047307
       
   114  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
   115  * @compile/ref=Test4c.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 2 A.java B.java
       
   116  */
       
   117 
       
   118 /*
       
   119  * @test
       
   120  * @bug 5047307
       
   121  * @summary javac -nowarn improperly suppresses JLS-mandated warnings
       
   122  * @compile/ref=Test4d.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 3 A.java B.java
       
   123  */