test/tools/javac/mandatoryWarnings/deprecated/Test.java

changeset 1
9a66ca7c79fa
child 554
9d9f26857129
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/javac/mandatoryWarnings/deprecated/Test.java	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,137 @@
     1.4 +/*
     1.5 + * Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 + *
     1.8 + * This code is free software; you can redistribute it and/or modify it
     1.9 + * under the terms of the GNU General Public License version 2 only, as
    1.10 + * published by the Free Software Foundation.
    1.11 + *
    1.12 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.14 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.15 + * version 2 for more details (a copy is included in the LICENSE file that
    1.16 + * accompanied this code).
    1.17 + *
    1.18 + * You should have received a copy of the GNU General Public License version
    1.19 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.20 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.21 + *
    1.22 + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.23 + * CA 95054 USA or visit www.sun.com if you need additional information or
    1.24 + * have any questions.
    1.25 + */
    1.26 +
    1.27 +// This file is not executed directly; it just exists to contain the
    1.28 +// set of test descriptions
    1.29 +
    1.30 +/*
    1.31 + * @test
    1.32 + * @bug 5047307
    1.33 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
    1.34 + * @compile/ref=Test1.out -XDstdout -XDrawDiagnostics A.java
    1.35 + */
    1.36 +
    1.37 +/*
    1.38 + * @test
    1.39 + * @bug 5047307
    1.40 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
    1.41 + * @compile/ref=Test1.out -XDstdout -XDrawDiagnostics -nowarn A.java
    1.42 + */
    1.43 +
    1.44 +/*
    1.45 + * @test
    1.46 + * @bug 5047307
    1.47 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
    1.48 + * @compile/ref=Test1.out -XDstdout -XDrawDiagnostics -Xmaxwarns 1 A.java
    1.49 + */
    1.50 +
    1.51 +/*
    1.52 + * @test
    1.53 + * @bug 5047307
    1.54 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
    1.55 + * @compile/ref=Test2.out -XDstdout -XDrawDiagnostics A.java B.java
    1.56 + */
    1.57 +
    1.58 +/*
    1.59 + * @test
    1.60 + * @bug 5047307
    1.61 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
    1.62 + * @compile/ref=Test2.out -XDstdout -XDrawDiagnostics -nowarn A.java B.java
    1.63 + */
    1.64 +
    1.65 +/*
    1.66 + * @test
    1.67 + * @bug 5047307
    1.68 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
    1.69 + * @compile/ref=Test2.out -XDstdout -XDrawDiagnostics -Xmaxwarns 1 A.java B.java
    1.70 + */
    1.71 +
    1.72 +/*
    1.73 + * @test
    1.74 + * @bug 5047307
    1.75 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
    1.76 + * @compile/ref=Test3.out -XDstdout -XDrawDiagnostics -Xlint:deprecation A.java
    1.77 + */
    1.78 +
    1.79 +/*
    1.80 + * @test
    1.81 + * @bug 5047307
    1.82 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
    1.83 + * @compile/ref=Test3.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:deprecation A.java
    1.84 + */
    1.85 +
    1.86 +/*
    1.87 + * @test
    1.88 + * @bug 5047307
    1.89 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
    1.90 + * @compile/ref=Test3b.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 1 A.java
    1.91 + */
    1.92 +
    1.93 +/*
    1.94 + * @test
    1.95 + * @bug 5047307
    1.96 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
    1.97 + * @compile/ref=Test4.out -XDstdout -XDrawDiagnostics -Xlint:deprecation A.java B.java
    1.98 + */
    1.99 +
   1.100 +/*
   1.101 + * @test
   1.102 + * @bug 5047307
   1.103 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
   1.104 + * @compile/ref=Test4.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:deprecation A.java B.java
   1.105 + */
   1.106 +
   1.107 +/*
   1.108 + * @test
   1.109 + * @bug 5047307
   1.110 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
   1.111 + * @compile/ref=Test4b.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 1 A.java B.java
   1.112 + */
   1.113 +
   1.114 +/*
   1.115 + * @test
   1.116 + * @bug 5047307
   1.117 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
   1.118 + * @compile/ref=Test4c.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 2 A.java B.java
   1.119 + */
   1.120 +
   1.121 +/*
   1.122 + * @test
   1.123 + * @bug 5047307
   1.124 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
   1.125 + * @compile/ref=Test4d.out -XDstdout -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 3 A.java B.java
   1.126 + */
   1.127 +
   1.128 +/*
   1.129 + * @test
   1.130 + * @bug 5047307
   1.131 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
   1.132 + * @compile/ref=Test5.out -XDstdout -XDrawDiagnostics -Xlint:deprecation  P.java Q.java
   1.133 + */
   1.134 +
   1.135 +/*
   1.136 + * @test
   1.137 + * @bug 5047307
   1.138 + * @summary javac -nowarn improperly suppresses JLS-mandated warnings
   1.139 + * @compile/ref=Test5b.out -XDstdout -XDrawDiagnostics -Xlint:deprecation -Xmaxwarns 2 P.java Q.java
   1.140 + */

mercurial