Skip to content

Commit cc2861a

Browse files
committed
8290901: Reduce use of -source in langtools tests
Reviewed-by: jjg
1 parent 64a1a08 commit cc2861a

File tree

81 files changed

+108
-128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+108
-128
lines changed

test/langtools/tools/javac/8074306/TestSyntheticNullChecks.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,7 @@
2525
* @test
2626
* @bug 8074306 8073432 8074501
2727
* @summary NULLCHK is emitted as Object.getClass
28-
* @compile -source 7 -target 7 TestSyntheticNullChecks.java
28+
* @compile --release 7 TestSyntheticNullChecks.java
2929
* @run main TestSyntheticNullChecks 7
3030
* @clean *
3131
* @compile TestSyntheticNullChecks.java

test/langtools/tools/javac/AnonStaticMember_1.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @summary Verify that an anonymous class can contain a static field only if source >= 16
55
* @author maddox
66
*
7-
* @compile/fail/ref=AnonStaticMember_1.out -source 15 -XDrawDiagnostics AnonStaticMember_1.java
7+
* @compile/fail/ref=AnonStaticMember_1.out --release 15 -XDrawDiagnostics AnonStaticMember_1.java
88
* @compile AnonStaticMember_1.java
99
*/
1010

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
- compiler.warn.source.no.system.modules.path: 15
21
AnonStaticMember_1.java:13:20: compiler.err.icls.cant.have.static.decl: compiler.misc.anonymous.class: AnonStaticMember_1$1
32
1 error
4-
1 warning

test/langtools/tools/javac/AnonStaticMember_2.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @summary Verify that an anonymous class can contain a static method only if source >= 16
55
* @author maddox
66
*
7-
* @compile/fail/ref=AnonStaticMember_2.out -source 15 -XDrawDiagnostics AnonStaticMember_2.java
7+
* @compile/fail/ref=AnonStaticMember_2.out --release 15 -XDrawDiagnostics AnonStaticMember_2.java
88
* @compile AnonStaticMember_2.java
99
*/
1010

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
- compiler.warn.source.no.system.modules.path: 15
21
AnonStaticMember_2.java:13:21: compiler.err.icls.cant.have.static.decl: compiler.misc.anonymous.class: AnonStaticMember_2$1
32
1 error
4-
1 warning

test/langtools/tools/javac/InnerNamedConstant_2.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @summary Verify rejection of illegal static variables in inner classes.
55
* @author William Maddox (maddox)
66
*
7-
* @compile/fail/ref=InnerNamedConstant_2_A.out -XDrawDiagnostics -source 15 InnerNamedConstant_2.java
7+
* @compile/fail/ref=InnerNamedConstant_2_A.out -XDrawDiagnostics --release 15 InnerNamedConstant_2.java
88
* @compile/fail/ref=InnerNamedConstant_2_B.out -XDrawDiagnostics InnerNamedConstant_2.java
99
*/
1010

Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
- compiler.warn.source.no.system.modules.path: 15
21
InnerNamedConstant_2.java:23:20: compiler.err.icls.cant.have.static.decl: InnerNamedConstant_2.Inner2
32
InnerNamedConstant_2.java:24:29: compiler.err.icls.cant.have.static.decl: InnerNamedConstant_2.Inner2
43
InnerNamedConstant_2.java:26:13: compiler.err.cant.assign.val.to.final.var: z
54
InnerNamedConstant_2.java:35:26: compiler.err.icls.cant.have.static.decl: InnerNamedConstant_2.Inner3
65
4 errors
7-
1 warning

test/langtools/tools/javac/InterfaceInInner.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
22
* @test /nodynamiccopyright/
33
* @bug 4063740 6969184
4-
* @summary Interfaces can be declared in inner classes only for source >= 16
4+
* @summary Interfaces can be declared in inner classes only for release >= 16
55
* @author turnidge
66
*
7-
* @compile/fail/ref=InterfaceInInner.out -XDrawDiagnostics -source 15 InterfaceInInner.java
7+
* @compile/fail/ref=InterfaceInInner.out -XDrawDiagnostics --release 15 InterfaceInInner.java
88
* @compile InterfaceInInner.java
99
*/
1010
class InterfaceInInner {
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
- compiler.warn.source.no.system.modules.path: 15
21
InterfaceInInner.java:13:13: compiler.err.icls.cant.have.static.decl: foo
32
1 error
4-
1 warning

test/langtools/tools/javac/LocalInterface.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @test /nodynamiccopyright/
33
* @bug 8242478 8246774
44
* @summary test for local interfaces
5-
* @compile/fail/ref=LocalInterface.out -XDrawDiagnostics -source 15 LocalInterface.java
5+
* @compile/fail/ref=LocalInterface.out -XDrawDiagnostics --release 15 LocalInterface.java
66
* @compile LocalInterface.java
77
*/
88
class LocalInterface {
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
- compiler.warn.source.no.system.modules.path: 15
21
LocalInterface.java:10:9: compiler.err.intf.not.allowed.here
32
1 error
4-
1 warning

test/langtools/tools/javac/StringConcat/TestIndyStringConcat.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -43,15 +43,15 @@
4343
* @run main TestIndyStringConcat false
4444
*
4545
* @clean *
46-
* @compile -XDstringConcat=inline -source 9 -target 9 TestIndyStringConcat.java
46+
* @compile -XDstringConcat=inline TestIndyStringConcat.java
4747
* @run main TestIndyStringConcat false
4848
*
4949
* @clean *
50-
* @compile -XDstringConcat=indy -source 9 -target 9 TestIndyStringConcat.java
50+
* @compile -XDstringConcat=indy TestIndyStringConcat.java
5151
* @run main TestIndyStringConcat true
5252
*
5353
* @clean *
54-
* @compile -XDstringConcat=indyWithConstants -source 9 -target 9 TestIndyStringConcat.java
54+
* @compile -XDstringConcat=indyWithConstants TestIndyStringConcat.java
5555
* @run main TestIndyStringConcat true
5656
*/
5757
public class TestIndyStringConcat {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @test /nodynamiccopyright/
22
* @bug 7196163
33
* @summary Verify that variables can be used as operands to try-with-resources
4-
* @compile/fail/ref=TwrForVariable1.out -source 8 -XDrawDiagnostics -Xlint:-options TwrForVariable1.java
4+
* @compile/fail/ref=TwrForVariable1.out --release 8 -XDrawDiagnostics TwrForVariable1.java
55
* @compile TwrForVariable1.java
66
* @run main TwrForVariable1
77
*/

test/langtools/tools/javac/analyzer/AnalyzersCheckSourceLevel.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
22
* @test /nodynamiccopyright/
33
* @bug 8211102
4-
* @summary Ensure that the lambda analyzer does not run when -source 7 is specified,
4+
* @summary Ensure that the lambda analyzer does not run when --release 7 is specified,
55
* even if explicitly requested
66
* @compile/fail/ref=AnalyzersCheckSourceLevel.out -Werror -XDfind=lambda -XDrawDiagnostics AnalyzersCheckSourceLevel.java
7-
* @compile -Werror -source 7 -Xlint:-options -XDfind=lambda AnalyzersCheckSourceLevel.java
7+
* @compile -Werror --release 7 -Xlint:-options -XDfind=lambda AnalyzersCheckSourceLevel.java
88
*/
99
public class AnalyzersCheckSourceLevel {
1010
void t() {

test/langtools/tools/javac/analyzer/T8211102.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,7 @@
2525
* @test
2626
* @bug 8211102
2727
* @summary Verify javac does not crash in lambda analyzer
28-
* @compile -Werror -XDfind=lambda -source 7 -Xlint:-options T8211102.java
28+
* @compile -Werror -XDfind=lambda --release 7 -Xlint:-options T8211102.java
2929
*/
3030
import java.util.*;
3131

test/langtools/tools/javac/annotations/repeatingAnnotations/WrongVersion.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @bug 8138822
44
* @summary test that only Java 8+ allows repeating annotations
55
* @compile WrongVersion.java
6-
* @compile -Xlint:-options -source 8 WrongVersion.java
6+
* @compile --release 8 WrongVersion.java
77
* @compile/fail/ref=WrongVersion7.out -XDrawDiagnostics -Xlint:-options -source 7 WrongVersion.java
88
*/
99
import java.lang.annotation.Repeatable;

test/langtools/tools/javac/annotations/typeAnnotations/failures/AnnotationVersion.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @summary test that only Java 8 allows type annotations
55
* @author Mahmood Ali
66
* @compile AnnotationVersion.java
7-
* @compile/fail/ref=AnnotationVersion7.out -XDrawDiagnostics -Xlint:-options -source 1.7 AnnotationVersion.java
7+
* @compile/fail/ref=AnnotationVersion7.out -XDrawDiagnostics -Xlint:-options --release 7 AnnotationVersion.java
88
*/
99
import java.lang.annotation.*;
1010

test/langtools/tools/javac/conditional/Conditional.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @author Tim Hanson, BEA
66
*
77
* @compile Conditional.java
8-
* @compile/fail/ref=Conditional.out -XDrawDiagnostics -source 7 -Xlint:-options Conditional.java
8+
* @compile/fail/ref=Conditional.out -XDrawDiagnostics --release 7 -Xlint:-options Conditional.java
99
*/
1010

1111
import java.util.*;

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

+1-1
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 -Xlint:-options SuppressDeprecation.java
8+
* @compile/ref=SuppressDeprecation8.out --release 8 -Xlint:deprecation -XDrawDiagnostics SuppressDeprecation.java
99
*/
1010

1111
/* Test for the contexts in which deprecations warnings should

test/langtools/tools/javac/enum/LocalEnum.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @bug 5019609 8246774
44
* @summary javac fails to reject local enums
55
* @author gafter
6-
* @compile/fail/ref=LocalEnum.out -XDrawDiagnostics -source 15 LocalEnum.java
6+
* @compile/fail/ref=LocalEnum.out -XDrawDiagnostics --release 15 LocalEnum.java
77
* @compile LocalEnum.java
88
*/
99

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
- compiler.warn.source.no.system.modules.path: 15
21
LocalEnum.java:12:9: compiler.err.local.enum
32
1 error
4-
1 warning

test/langtools/tools/javac/enum/NestedEnum.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
22
* @test /nodynamiccopyright/
33
* @bug 5071831
4-
* @summary javac allows enum in an inner class for source >= 16
4+
* @summary javac allows enum in an inner class for release >= 16
55
* @author gafter
66
*
7-
* @compile/fail/ref=NestedEnum.out -XDrawDiagnostics -source 15 NestedEnum.java
7+
* @compile/fail/ref=NestedEnum.out -XDrawDiagnostics --release 15 NestedEnum.java
88
* @compile NestedEnum.java
99
*/
1010

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
- compiler.warn.source.no.system.modules.path: 15
21
NestedEnum.java:13:9: compiler.err.static.declaration.not.allowed.in.inner.classes
32
1 error
4-
1 warning

test/langtools/tools/javac/enum/T5081785.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @bug 5081785
44
* @summary enums should be allowed in non-static contexts
55
* @author Peter von der Ah\u00e9
6-
* @compile/fail/ref=T5081785.out -XDrawDiagnostics -source 15 T5081785.java
6+
* @compile/fail/ref=T5081785.out -XDrawDiagnostics --release 15 T5081785.java
77
* @compile T5081785.java
88
*/
99

Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
- compiler.warn.source.no.system.modules.path: 15
21
T5081785.java:30:9: compiler.err.static.declaration.not.allowed.in.inner.classes
32
T5081785.java:13:13: compiler.err.static.declaration.not.allowed.in.inner.classes
43
T5081785.java:20:27: compiler.err.static.declaration.not.allowed.in.inner.classes
54
T5081785.java:25:31: compiler.err.static.declaration.not.allowed.in.inner.classes
65
4 errors
7-
1 warning

test/langtools/tools/javac/generics/6723444/T6723444.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @summary javac fails to substitute type variables into a constructor's throws clause
66
* @author Mark Mahieu
7-
* @compile/fail/ref=T6723444_1.out -Xlint:-options -source 7 -XDrawDiagnostics T6723444.java
7+
* @compile/fail/ref=T6723444_1.out -Xlint:-options --release 7 -XDrawDiagnostics T6723444.java
88
* @compile/fail/ref=T6723444_2.out -XDrawDiagnostics T6723444.java
99
*
1010
*/

test/langtools/tools/javac/generics/7015430/T7015430.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
*
55
* @summary Incorrect thrown type determined for unchecked invocations
66
* @author Daniel Smith
7-
* @compile/fail/ref=T7015430_1.out -source 7 -Xlint:-options,unchecked -XDrawDiagnostics T7015430.java
8-
* @compile/fail/ref=T7015430_2.out -Xlint:unchecked -XDrawDiagnostics T7015430.java
7+
* @compile/fail/ref=T7015430_1.out --release 7 -Xlint:-options,unchecked -XDrawDiagnostics T7015430.java
8+
* @compile/fail/ref=T7015430_2.out -Xlint:unchecked -XDrawDiagnostics T7015430.java
99
*
1010
*/
1111

test/langtools/tools/javac/generics/7022054/T7022054pos1.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @bug 7022054
44
*
55
* @summary Invalid compiler error on covariant overriding methods with the same erasure
6-
* @compile -source 7 T7022054pos1.java
6+
* @compile --release 7 T7022054pos1.java
77
* @compile/fail/ref=T7022054pos1.out -XDrawDiagnostics T7022054pos1.java
88
*
99
*/

test/langtools/tools/javac/generics/7022054/T7022054pos2.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @bug 7022054
44
*
55
* @summary Invalid compiler error on covariant overriding methods with the same erasure
6-
* @compile -source 7 T7022054pos2.java
6+
* @compile --release 7 T7022054pos2.java
77
* @compile/fail/ref=T7022054pos2.out -XDrawDiagnostics T7022054pos2.java
88
*/
99

test/langtools/tools/javac/generics/InstanceOf3.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @summary the type in an instanceof expression must be reifiable
55
* @author seligman
66
*
7-
* @compile/fail/ref=InstanceOf3.out -XDrawDiagnostics -source 15 -Xlint:-options InstanceOf3.java
7+
* @compile/fail/ref=InstanceOf3.out -XDrawDiagnostics --release 15 InstanceOf3.java
88
*/
99

1010
public class InstanceOf3 {

test/langtools/tools/javac/generics/diamond/6939780/T6939780.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
*
55
* @summary add a warning to detect diamond sites (including anonymous class instance creation at source >= 9)
66
* @author mcimadamore
7-
* @compile/ref=T6939780_7.out -Xlint:-options -source 7 T6939780.java -XDrawDiagnostics -XDfind=diamond
8-
* @compile/ref=T6939780_8.out -Xlint:-options -source 8 T6939780.java -XDrawDiagnostics -XDfind=diamond
9-
* @compile/ref=T6939780_9.out -Xlint:-options -source 9 T6939780.java -XDrawDiagnostics -XDfind=diamond
7+
* @compile/ref=T6939780_7.out -Xlint:-options --release 7 T6939780.java -XDrawDiagnostics -XDfind=diamond
8+
* @compile/ref=T6939780_8.out --release 8 T6939780.java -XDrawDiagnostics -XDfind=diamond
9+
* @compile/ref=T6939780_9.out T6939780.java -XDrawDiagnostics -XDfind=diamond
1010
*
1111
*/
1212

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +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 -Xlint:-options
8-
*
7+
* @compile/fail/ref=Neg09a.out Neg09a.java --release 8 -XDrawDiagnostics
98
*/
109

1110
class Neg09a {
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Neg09a.java:15:34: compiler.err.cant.apply.diamond.1: Neg09a.Member<X>, (compiler.misc.feature.not.supported.in.source: (compiler.misc.feature.diamond.and.anon.class), 8, 9)
1+
Neg09a.java:14:34: compiler.err.cant.apply.diamond.1: Neg09a.Member<X>, (compiler.misc.feature.not.supported.in.source: (compiler.misc.feature.diamond.and.anon.class), 8, 9)
22
1 error

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +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=Neg09b.out Neg09b.java -source 8 -XDrawDiagnostics -Xlint:-options
8-
*
7+
* @compile/fail/ref=Neg09b.out Neg09b.java --release 8 -XDrawDiagnostics
98
*/
109

1110
class Neg09b {
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Neg09b.java:16:34: compiler.err.cant.apply.diamond.1: Neg09b.Nested<X>, (compiler.misc.feature.not.supported.in.source: (compiler.misc.feature.diamond.and.anon.class), 8, 9)
1+
Neg09b.java:15:34: compiler.err.cant.apply.diamond.1: Neg09b.Nested<X>, (compiler.misc.feature.not.supported.in.source: (compiler.misc.feature.diamond.and.anon.class), 8, 9)
22
1 error

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +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=Neg09c.out Neg09c.java -source 8 -XDrawDiagnostics -Xlint:-options
8-
*
7+
* @compile/fail/ref=Neg09c.out Neg09c.java --release 8 -XDrawDiagnostics
98
*/
109

1110
class Neg09c {
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Neg09c.java:15:39: compiler.err.cant.apply.diamond.1: Neg09c.Member<X>, (compiler.misc.feature.not.supported.in.source: (compiler.misc.feature.diamond.and.anon.class), 8, 9)
1+
Neg09c.java:14:39: compiler.err.cant.apply.diamond.1: Neg09c.Member<X>, (compiler.misc.feature.not.supported.in.source: (compiler.misc.feature.diamond.and.anon.class), 8, 9)
22
1 error

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +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=Neg09d.out Neg09d.java -source 8 -XDrawDiagnostics -Xlint:-options
8-
*
7+
* @compile/fail/ref=Neg09d.out Neg09d.java --release 8 -XDrawDiagnostics
98
*/
109

1110
class Neg09d {
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Neg09d.java:16:33: compiler.err.doesnt.exist: Neg09
1+
Neg09d.java:15:33: compiler.err.doesnt.exist: Neg09
22
1 error

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @summary Check that 'complex' diamond can infer type that is too specific
66
* @author mcimadamore
7-
* @compile/fail/ref=Neg10.out -source 7 -Xlint:-options Neg10.java -XDrawDiagnostics
7+
* @compile/fail/ref=Neg10.out --release 7 -Xlint:-options Neg10.java -XDrawDiagnostics
88
* @compile Neg10.java -XDrawDiagnostics
99
*
1010
*/

test/langtools/tools/javac/generics/inference/6278587/T6278587Neg.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @bug 6278587 8007464
44
* @summary Inference broken for subtypes of subtypes of F-bounded types
55
* @author Peter von der Ah\u00e9
6-
* @compile/fail/ref=T6278587Neg.out -XDrawDiagnostics -source 7 -Xlint:-options T6278587Neg.java
6+
* @compile/fail/ref=T6278587Neg.out -XDrawDiagnostics --release 7 -Xlint:-options T6278587Neg.java
77
* @compile T6278587Neg.java
88
*/
99

test/langtools/tools/javac/generics/inference/7154127/T7154127.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @test /nodynamiccopyright/
33
* @bug 7154127 8007464
44
* @summary Inference cleanup: remove bound check analysis from visitors in Types.java
5-
* @compile/fail/ref=T7154127.out -Xlint:-options -source 7 -XDrawDiagnostics T7154127.java
5+
* @compile/fail/ref=T7154127.out -Xlint:-options --release 7 -XDrawDiagnostics T7154127.java
66
* @compile T7154127.java
77
*/
88
class T7154127 {

test/langtools/tools/javac/generics/inference/7177306/T7177306e.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @test /nodynamiccopyright/
33
* @bug 7177306 8007464
44
* @summary Regression: unchecked method call does not erase return type
5-
* @compile/fail/ref=T7177306e_7.out -XDrawDiagnostics -source 7 -Xlint:-options -XDrawDiagnostics T7177306e.java
5+
* @compile/fail/ref=T7177306e_7.out -XDrawDiagnostics --release 7 -Xlint:-options -XDrawDiagnostics T7177306e.java
66
* @compile/fail/ref=T7177306e.out -XDrawDiagnostics T7177306e.java
77
*/
88

0 commit comments

Comments
 (0)