Details
-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
7
-
x86
-
windows_xp
Description
FULL PRODUCT VERSION :
javac -version
javac 1.6.0_06
A DESCRIPTION OF THE PROBLEM :
Compile the following code with javac -Xlint:deprecation src.java,
A warning will be given :
warning: [deprecation] test.b in test has been deprecated
b c = new b();
/**
* @deprecated
*/
package test;
class b{
}
public class Test{
public static void main(String[] args) {
b c = new b();
}
}
REPRODUCIBILITY :
This bug can be reproduced always.
javac -version
javac 1.6.0_06
A DESCRIPTION OF THE PROBLEM :
Compile the following code with javac -Xlint:deprecation src.java,
A warning will be given :
warning: [deprecation] test.b in test has been deprecated
b c = new b();
/**
* @deprecated
*/
package test;
class b{
}
public class Test{
public static void main(String[] args) {
b c = new b();
}
}
REPRODUCIBILITY :
This bug can be reproduced always.
Attachments
Issue Links
- relates to
-
JDK-6480588 No way to suppress deprecation warnings when implementing deprecated interface
-
- Resolved
-
-
JDK-6598104 javac should not warn about imports of deprecated classes
-
- Closed
-
-
JDK-7096014 Javac tokens should retain state
-
- Closed
-