10
|
1 |
/*
|
7681
|
2 |
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
|
10
|
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 |
*
|
5520
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
20 |
* or visit www.oracle.com if you need additional information or have any
|
|
21 |
* questions.
|
10
|
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
|
6150
|
31 |
* @compile/ref=Test1.out -XDrawDiagnostics A.java
|
10
|
32 |
*/
|
|
33 |
|
|
34 |
/*
|
|
35 |
* @test
|
|
36 |
* @bug 5047307
|
|
37 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
38 |
* @compile/ref=Test1.out -XDrawDiagnostics -nowarn A.java
|
10
|
39 |
*/
|
|
40 |
|
|
41 |
/*
|
|
42 |
* @test
|
|
43 |
* @bug 5047307
|
|
44 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
45 |
* @compile/ref=Test1.out -XDrawDiagnostics -Xmaxwarns 1 A.java
|
10
|
46 |
*/
|
|
47 |
|
|
48 |
/*
|
|
49 |
* @test
|
|
50 |
* @bug 5047307
|
|
51 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
52 |
* @compile/ref=Test2.out -XDrawDiagnostics A.java B.java
|
10
|
53 |
*/
|
|
54 |
|
|
55 |
/*
|
|
56 |
* @test
|
|
57 |
* @bug 5047307
|
|
58 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
59 |
* @compile/ref=Test2.out -XDrawDiagnostics -nowarn A.java B.java
|
10
|
60 |
*/
|
|
61 |
|
|
62 |
/*
|
|
63 |
* @test
|
|
64 |
* @bug 5047307
|
|
65 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
66 |
* @compile/ref=Test2.out -XDrawDiagnostics -Xmaxwarns 1 A.java B.java
|
10
|
67 |
*/
|
|
68 |
|
|
69 |
/*
|
|
70 |
* @test
|
|
71 |
* @bug 5047307
|
|
72 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
73 |
* @compile/ref=Test3.out -XDrawDiagnostics -Xlint:unchecked A.java
|
10
|
74 |
*/
|
|
75 |
|
|
76 |
/*
|
|
77 |
* @test
|
|
78 |
* @bug 5047307
|
|
79 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
80 |
* @compile/ref=Test3.out -XDrawDiagnostics -nowarn -Xlint:unchecked A.java
|
10
|
81 |
*/
|
|
82 |
|
|
83 |
/*
|
|
84 |
* @test
|
|
85 |
* @bug 5047307
|
|
86 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
87 |
* @compile/ref=Test3b.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 1 A.java
|
10
|
88 |
*/
|
|
89 |
|
|
90 |
/*
|
|
91 |
* @test
|
|
92 |
* @bug 5047307
|
|
93 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
94 |
* @compile/ref=Test4.out -XDrawDiagnostics -Xlint:unchecked A.java B.java
|
10
|
95 |
*/
|
|
96 |
|
|
97 |
/*
|
|
98 |
* @test
|
|
99 |
* @bug 5047307
|
|
100 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
101 |
* @compile/ref=Test4.out -XDrawDiagnostics -nowarn -Xlint:unchecked A.java B.java
|
10
|
102 |
*/
|
|
103 |
|
|
104 |
/*
|
|
105 |
* @test
|
|
106 |
* @bug 5047307
|
|
107 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
108 |
* @compile/ref=Test4b.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 1 A.java B.java
|
10
|
109 |
*/
|
|
110 |
|
|
111 |
/*
|
|
112 |
* @test
|
|
113 |
* @bug 5047307
|
|
114 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
115 |
* @compile/ref=Test4c.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 2 A.java B.java
|
10
|
116 |
*/
|
|
117 |
|
|
118 |
/*
|
|
119 |
* @test
|
|
120 |
* @bug 5047307
|
|
121 |
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
6150
|
122 |
* @compile/ref=Test4d.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 3 A.java B.java
|
10
|
123 |
*/
|