mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 08:34:30 +02:00
8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
This commit is contained in:
parent
270fe13182
commit
3789983e89
56923 changed files with 3 additions and 15727 deletions
29
test/langtools/tools/javac/T6554097.java
Normal file
29
test/langtools/tools/javac/T6554097.java
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6554097
|
||||
* @summary "final" confuses at-SuppressWarnings
|
||||
* @compile T6554097.java
|
||||
* @compile/fail/ref=T6554097.out -XDrawDiagnostics -Werror -Xlint:rawtypes T6554097.java
|
||||
*/
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
class T6554097 {
|
||||
|
||||
@SuppressWarnings("unchecked") final ArrayList[] v1 = { new ArrayList() {} };
|
||||
@SuppressWarnings("unchecked") ArrayList[] v2 = { new ArrayList() {} };
|
||||
|
||||
public static void m1() throws Throwable {
|
||||
@SuppressWarnings("unchecked") final ArrayList[] v3 = { new ArrayList() {} };
|
||||
@SuppressWarnings("unchecked") ArrayList[] v4 = { new ArrayList() {} };
|
||||
}
|
||||
|
||||
final ArrayList[] v5 = { new ArrayList() {} };
|
||||
ArrayList[] v6 = { new ArrayList() {} };
|
||||
|
||||
public static void m2() throws Throwable {
|
||||
final ArrayList[] v7 = { new ArrayList() {} };
|
||||
ArrayList[] v8 = { new ArrayList() {} };
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue