JDK 19 |
---|
19 masterFixed |
Relates :
|
Consider: ===package-info.java @Ann @SuppressWarnings("deprecation") package test; ===Ann.java package test; @Deprecated @interface Ann {} === After JDK-8280744, this will produce: --- $ javac -Xlint:deprecation *.java package-info.java:1: warning: [deprecation] Ann in test has been deprecated @Ann ^ 1 warning --- That appears to be clearly wrong, as the warning is suppressed. Something similar is visible in module-info.
|