mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8347141: Several javac tests compile with an unnecessary -Xlint:-path flag
Reviewed-by: vromero, darcy
This commit is contained in:
parent
f9b11332ec
commit
cb9a98b31a
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @test (important: no SCCS keywords to affect offsets in golden file.) /nodynamiccopyright/
|
||||
* @bug 6304921
|
||||
* @compile/fail/ref=T6304921.out -XDcompilePolicy=bytodo -XDrawDiagnostics -Xjcov -Xlint:all,-path -Werror T6304921.java
|
||||
* @compile/fail/ref=T6304921.out -XDcompilePolicy=bytodo -XDrawDiagnostics -Xjcov -Xlint:all -Werror T6304921.java
|
||||
*/
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 5048776
|
||||
* @compile/ref=T5048776a.out -XDrawDiagnostics T5048776.java
|
||||
* @compile/ref=T5048776b.out -XDrawDiagnostics -Xlint:all,-path T5048776.java
|
||||
* @compile/ref=T5048776a.out -XDrawDiagnostics T5048776.java
|
||||
* @compile/ref=T5048776b.out -XDrawDiagnostics -Xlint:all T5048776.java
|
||||
*/
|
||||
class A1 {
|
||||
void foo(Object[] args) { }
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6245591
|
||||
* @compile/ref=T6245591.out -XDrawDiagnostics -Xlint:all,-path T6245591.java
|
||||
* @compile/ref=T6245591.out -XDrawDiagnostics -Xlint:all T6245591.java
|
||||
*/
|
||||
enum Season {
|
||||
/** @deprecated */
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6247324
|
||||
* @compile/fail/ref=T6247324.out -XDrawDiagnostics -Xlint -Xlint:-path T6247324.java
|
||||
* @compile/fail/ref=T6247324.out -XDrawDiagnostics -Xlint T6247324.java
|
||||
*/
|
||||
class Pair<X,Y> {
|
||||
private X x;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -161,7 +161,7 @@ public class TestWarnErrorCount extends JavacTestingAbstractProcessor {
|
||||
"-d", testDir.getPath(),
|
||||
"-processor", myName,
|
||||
// "-XprintRounds",
|
||||
"-Xlint:all,-path",
|
||||
"-Xlint:all",
|
||||
"-AerrKind=" + ek,
|
||||
"-AmsgrWarnKind=" + mwk,
|
||||
"-AjavaWarnKind=" + jwk));
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
* @bug 4759494 4986256
|
||||
* @compile/ref=DivZero.noLint.out -XDrawDiagnostics DivZero.java
|
||||
* @compile/ref=DivZero.lint.out -Xlint:divzero -XDrawDiagnostics DivZero.java
|
||||
* @compile/ref=DivZero.lint.out -Xlint:all,-path -XDrawDiagnostics DivZero.java
|
||||
* @compile/ref=DivZero.lint.out -Xlint:all -XDrawDiagnostics DivZero.java
|
||||
*/
|
||||
|
||||
class DivZero
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 4986256
|
||||
* @compile/ref=FallThrough.noLint.out -XDrawDiagnostics FallThrough.java
|
||||
* @compile/ref=FallThrough.lintAll.out -Xlint:all,-path -XDrawDiagnostics FallThrough.java
|
||||
* @compile/ref=FallThrough.lintAll.out -Xlint:all -XDrawDiagnostics FallThrough.java
|
||||
* @compile/ref=FallThrough.lintFallThrough.out -Xlint:fallthrough -XDrawDiagnostics FallThrough.java
|
||||
*/
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
* @bug 4986256
|
||||
* @compile/ref=Unchecked.noLint.out -XDrawDiagnostics Unchecked.java
|
||||
* @compile/ref=Unchecked.lintUnchecked.out -Xlint:unchecked -XDrawDiagnostics Unchecked.java
|
||||
* @compile/ref=Unchecked.lintAll.out -Xlint:all,-path -XDrawDiagnostics Unchecked.java
|
||||
* @compile/ref=Unchecked.lintAll.out -Xlint:all -XDrawDiagnostics Unchecked.java
|
||||
*/
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user