26298f1124
6598104: javac should not warn about imports of deprecated classes Suppressing the deprecation warnings when importing a deprecated element (deprecations in import qualifier will be produced). Reviewed-by: darcy, jjg, mcimadamore
14 lines
560 B
Java
14 lines
560 B
Java
/**
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8020586
|
|
* @summary Warnings in the imports section should be attributed to the correct source file
|
|
* @clean Auxiliary ImplicitCompilation
|
|
* @compile/ref=ImplicitCompilation.out -source 8 -XDrawDiagnostics -Xlint:deprecation,-options -sourcepath . ImplicitCompilation.java
|
|
* @clean Auxiliary ImplicitCompilation
|
|
* @compile/ref=ExplicitCompilation.out -source 8 -XDrawDiagnostics -Xlint:deprecation,-options ImplicitCompilation.java Auxiliary.java
|
|
*/
|
|
|
|
public class ImplicitCompilation {
|
|
private Auxiliary a;
|
|
}
|