Skip to content

Commit cb9a98b

Browse files
committedJan 9, 2025
8347141: Several javac tests compile with an unnecessary -Xlint:-path flag
Reviewed-by: vromero, darcy
1 parent f9b1133 commit cb9a98b

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed
 

‎test/langtools/tools/javac/6304921/T6304921.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @test (important: no SCCS keywords to affect offsets in golden file.) /nodynamiccopyright/
33
* @bug 6304921
4-
* @compile/fail/ref=T6304921.out -XDcompilePolicy=bytodo -XDrawDiagnostics -Xjcov -Xlint:all,-path -Werror T6304921.java
4+
* @compile/fail/ref=T6304921.out -XDcompilePolicy=bytodo -XDrawDiagnostics -Xjcov -Xlint:all -Werror T6304921.java
55
*/
66

77
import java.util.ArrayList;

‎test/langtools/tools/javac/T5048776.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
* @test /nodynamiccopyright/
33
* @bug 5048776
4-
* @compile/ref=T5048776a.out -XDrawDiagnostics T5048776.java
5-
* @compile/ref=T5048776b.out -XDrawDiagnostics -Xlint:all,-path T5048776.java
4+
* @compile/ref=T5048776a.out -XDrawDiagnostics T5048776.java
5+
* @compile/ref=T5048776b.out -XDrawDiagnostics -Xlint:all T5048776.java
66
*/
77
class A1 {
88
void foo(Object[] args) { }

‎test/langtools/tools/javac/T6245591.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @test /nodynamiccopyright/
33
* @bug 6245591
4-
* @compile/ref=T6245591.out -XDrawDiagnostics -Xlint:all,-path T6245591.java
4+
* @compile/ref=T6245591.out -XDrawDiagnostics -Xlint:all T6245591.java
55
*/
66
enum Season {
77
/** @deprecated */

‎test/langtools/tools/javac/T6247324.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @test /nodynamiccopyright/
33
* @bug 6247324
4-
* @compile/fail/ref=T6247324.out -XDrawDiagnostics -Xlint -Xlint:-path T6247324.java
4+
* @compile/fail/ref=T6247324.out -XDrawDiagnostics -Xlint T6247324.java
55
*/
66
class Pair<X,Y> {
77
private X x;

‎test/langtools/tools/javac/processing/TestWarnErrorCount.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2025, 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
@@ -161,7 +161,7 @@ void test(ErrorKind ek, WarnKind mwk, WarnKind jwk) {
161161
"-d", testDir.getPath(),
162162
"-processor", myName,
163163
// "-XprintRounds",
164-
"-Xlint:all,-path",
164+
"-Xlint:all",
165165
"-AerrKind=" + ek,
166166
"-AmsgrWarnKind=" + mwk,
167167
"-AjavaWarnKind=" + jwk));

‎test/langtools/tools/javac/warnings/DivZero.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @bug 4759494 4986256
44
* @compile/ref=DivZero.noLint.out -XDrawDiagnostics DivZero.java
55
* @compile/ref=DivZero.lint.out -Xlint:divzero -XDrawDiagnostics DivZero.java
6-
* @compile/ref=DivZero.lint.out -Xlint:all,-path -XDrawDiagnostics DivZero.java
6+
* @compile/ref=DivZero.lint.out -Xlint:all -XDrawDiagnostics DivZero.java
77
*/
88

99
class DivZero

‎test/langtools/tools/javac/warnings/FallThrough.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @test /nodynamiccopyright/
33
* @bug 4986256
44
* @compile/ref=FallThrough.noLint.out -XDrawDiagnostics FallThrough.java
5-
* @compile/ref=FallThrough.lintAll.out -Xlint:all,-path -XDrawDiagnostics FallThrough.java
5+
* @compile/ref=FallThrough.lintAll.out -Xlint:all -XDrawDiagnostics FallThrough.java
66
* @compile/ref=FallThrough.lintFallThrough.out -Xlint:fallthrough -XDrawDiagnostics FallThrough.java
77
*/
88

‎test/langtools/tools/javac/warnings/Unchecked.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @bug 4986256
44
* @compile/ref=Unchecked.noLint.out -XDrawDiagnostics Unchecked.java
55
* @compile/ref=Unchecked.lintUnchecked.out -Xlint:unchecked -XDrawDiagnostics Unchecked.java
6-
* @compile/ref=Unchecked.lintAll.out -Xlint:all,-path -XDrawDiagnostics Unchecked.java
6+
* @compile/ref=Unchecked.lintAll.out -Xlint:all -XDrawDiagnostics Unchecked.java
77
*/
88

99
import java.util.ArrayList;

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Jan 9, 2025

@openjdk-notifier[bot]
Please sign in to comment.