2011-01-26 19:20:19 +00:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 6554097
|
|
|
|
* @summary "final" confuses at-SuppressWarnings
|
|
|
|
* @compile T6554097.java
|
2016-04-18 20:25:50 +00:00
|
|
|
* @compile/fail/ref=T6554097.out -XDrawDiagnostics -Werror -Xlint:rawtypes T6554097.java
|
2011-01-26 19:20:19 +00:00
|
|
|
*/
|
|
|
|
|
2016-04-18 20:25:50 +00:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
2011-01-26 19:20:19 +00:00
|
|
|
class T6554097 {
|
2016-04-18 20:25:50 +00:00
|
|
|
|
|
|
|
@SuppressWarnings("unchecked") final ArrayList[] v1 = { new ArrayList() {} };
|
|
|
|
@SuppressWarnings("unchecked") ArrayList[] v2 = { new ArrayList() {} };
|
2011-01-26 19:20:19 +00:00
|
|
|
|
|
|
|
public static void m1() throws Throwable {
|
2016-04-18 20:25:50 +00:00
|
|
|
@SuppressWarnings("unchecked") final ArrayList[] v3 = { new ArrayList() {} };
|
|
|
|
@SuppressWarnings("unchecked") ArrayList[] v4 = { new ArrayList() {} };
|
2011-01-26 19:20:19 +00:00
|
|
|
}
|
|
|
|
|
2016-04-18 20:25:50 +00:00
|
|
|
final ArrayList[] v5 = { new ArrayList() {} };
|
|
|
|
ArrayList[] v6 = { new ArrayList() {} };
|
2011-01-26 19:20:19 +00:00
|
|
|
|
|
|
|
public static void m2() throws Throwable {
|
2016-04-18 20:25:50 +00:00
|
|
|
final ArrayList[] v7 = { new ArrayList() {} };
|
|
|
|
ArrayList[] v8 = { new ArrayList() {} };
|
2011-01-26 19:20:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|