Skip to content

Commit 5685e58

Browse files
committed
8207248: Reduce incidence of compiler.warn.source.no.bootclasspath in javac tests
Reviewed-by: clanger, phh Backport-of: a376d5d
1 parent 0a91274 commit 5685e58

File tree

18 files changed

+12
-40
lines changed

18 files changed

+12
-40
lines changed

test/langtools/tools/javac/TryWithResources/WeirdTwr.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @bug 6911256 6964740
44
* @author Joseph D. Darcy
55
* @summary Strange TWRs
6-
* @compile/fail/ref=WeirdTwr.out -XDrawDiagnostics -source 6 WeirdTwr.java
6+
* @compile/fail/ref=WeirdTwr.out -XDrawDiagnostics -Xlint:-options -source 6 WeirdTwr.java
77
* @compile WeirdTwr.java
88
* @run main WeirdTwr
99
*/
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
- compiler.warn.source.no.bootclasspath: 6
2-
- compiler.warn.option.obsolete.source: 6
3-
- compiler.warn.option.obsolete.suppression
41
WeirdTwr.java:14:12: compiler.err.feature.not.supported.in.source: (compiler.misc.feature.try.with.resources), 6, 7
52
1 error
6-
3 warnings

test/langtools/tools/javac/depDocComment/SuppressDeprecation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @author gafter
66
*
77
* @compile/ref=SuppressDeprecation.out -Xlint:deprecation -XDrawDiagnostics SuppressDeprecation.java
8-
* @compile/ref=SuppressDeprecation8.out -source 8 -Xlint:deprecation -XDrawDiagnostics SuppressDeprecation.java
8+
* @compile/ref=SuppressDeprecation8.out -source 8 -Xlint:deprecation -XDrawDiagnostics -Xlint:-options SuppressDeprecation.java
99
*/
1010

1111
/* Test for the contexts in which deprecations warnings should
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
- compiler.warn.source.no.bootclasspath: 8
21
SuppressDeprecation.java:83:10: compiler.warn.has.been.deprecated: g(), T
32
SuppressDeprecation.java:84:14: compiler.warn.has.been.deprecated: g(), T
43
SuppressDeprecation.java:85:9: compiler.warn.has.been.deprecated: var, T
54
SuppressDeprecation.java:88:9: compiler.warn.has.been.deprecated: T(), T
65
SuppressDeprecation.java:91:9: compiler.warn.has.been.deprecated: T(int), T
76
SuppressDeprecation.java:99:1: compiler.warn.has.been.deprecated: T(), T
87
SuppressDeprecation.java:131:17: compiler.warn.has.been.deprecated: X, compiler.misc.unnamed.package
9-
8 warnings
8+
7 warnings

test/langtools/tools/javac/diags/examples/DiamondAndAnonClass.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
// key: compiler.misc.feature.not.supported.in.source
2525
// key: compiler.misc.feature.diamond.and.anon.class
2626
// key: compiler.err.cant.apply.diamond.1
27-
// key: compiler.warn.source.no.bootclasspath
28-
// options: -source 8
27+
// options: -source 8 -Xlint:-options
2928

3029
import java.util.*;
3130

test/langtools/tools/javac/diags/examples/DirPathElementNotFound.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
*/
2323

2424
// key: compiler.warn.dir.path.element.not.found
25-
// key: compiler.warn.source.no.bootclasspath
26-
// options: -Xlint:path -source 8 -target 8 -extdirs DoesNotExist
25+
// options: -Xlint:path,-options -source 8 -target 8 -extdirs DoesNotExist
2726
// run: simple
2827

2928
class DirPathElementNotFound { }

test/langtools/tools/javac/diags/examples/ModulesNotSupportedInSource/module-info.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323

2424
// key: compiler.err.feature.not.supported.in.source.plural
2525
// key: compiler.misc.feature.modules
26-
// key: compiler.warn.source.no.bootclasspath
27-
// options: -source 8 -Xlint:-path
26+
// options: -source 8 -Xlint:-path,-options
2827

2928
module ModulesNotSupportedInSource {
3029
}

test/langtools/tools/javac/diags/examples/PrivateInterfaceMethodsNotSupported.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323

2424
// key: compiler.err.feature.not.supported.in.source.plural
2525
// key: compiler.misc.feature.private.intf.methods
26-
// key: compiler.warn.source.no.bootclasspath
27-
// options: -source 8
26+
// options: -source 8 -Xlint:-options
2827

2928
interface PrivateInterfaceMethodsNotSupported {
3029
private void foo() {}

test/langtools/tools/javac/diags/examples/VarInTryWithResourcesNotSupportedInSource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323

2424
// key: compiler.err.feature.not.supported.in.source.plural
2525
// key: compiler.misc.feature.var.in.try.with.resources
26-
// key: compiler.warn.source.no.bootclasspath
27-
// options: -source 8
26+
// options: -source 8 -Xlint:-options
2827

2928
class VarInTryWithResourcesNotSupportedInSource {
3029
void m() {

test/langtools/tools/javac/generics/diamond/neg/Neg09a.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @summary Check that diamond is not allowed with anonymous inner class expressions at source < 9
66
* @author Maurizio Cimadamore
7-
* @compile/fail/ref=Neg09a.out Neg09a.java -source 8 -XDrawDiagnostics
7+
* @compile/fail/ref=Neg09a.out Neg09a.java -source 8 -XDrawDiagnostics -Xlint:-options
88
*
99
*/
1010

0 commit comments

Comments
 (0)