langtools/test/tools/javac/proprietary/WarnWildcard.java
author akulyakh
Thu, 21 May 2015 11:41:04 -0700
changeset 30730 d3ce7619db2c
parent 30714 2bd9a474f287
child 34855 353666685672
permissions -rw-r--r--
8076543: Add @modules as needed to the langtools tests Reviewed-by: jjg, shurailine
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
30714
2bd9a474f287 8068465: Group 10e: golden files for tests in tools/javac dir
sogoel
parents: 23393
diff changeset
     2
 * @test    /nodynamiccopyright/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * @bug     6380059
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary Emit warnings for proprietary packages in the boot class path
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * @author  Peter von der Ah\u00e9
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 30714
diff changeset
     6
 * @modules java.base/sun.misc
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 * @compile WarnWildcard.java
30714
2bd9a474f287 8068465: Group 10e: golden files for tests in tools/javac dir
sogoel
parents: 23393
diff changeset
     8
 * @compile/fail/ref=WarnWildcard.out -XDrawDiagnostics  -Werror WarnWildcard.java
2bd9a474f287 8068465: Group 10e: golden files for tests in tools/javac dir
sogoel
parents: 23393
diff changeset
     9
 * @compile/fail/ref=WarnWildcard.out -XDrawDiagnostics  -Werror -nowarn WarnWildcard.java
2bd9a474f287 8068465: Group 10e: golden files for tests in tools/javac dir
sogoel
parents: 23393
diff changeset
    10
 * @compile/fail/ref=WarnWildcard.out -XDrawDiagnostics  -Werror -Xlint:none WarnWildcard.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
public class WarnWildcard {
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
    java.util.Collection<? extends sun.misc.FloatConsts> x;
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
}