You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding @Deprecated to a method normally tells the compiler to ignore all deprecation warnings in that method. This fails for calls to deprecated methods in a lambda in the deprecated method.
Transfer of Bug 562113
Problem
Adding
@Deprecated
to a method normally tells the compiler to ignore all deprecation warnings in that method. This fails for calls to deprecated methods in a lambda in the deprecated method.Example
Expected behaviour
javac -Xlint:deprecation
shows no deprecation warnings in all 3 cases.Additional:
@SuppressWarnings("deprecation")
will suppress all 3 warnings whencallDeprecated()
is not@Deprecated
(and also when it is)System information
Eclipse SDK
Version: 2023-12 (4.30)
Build id: I20230911-1800
openjdk version "20.0.2" 2023-07-18
OpenJDK Runtime Environment Temurin-20.0.2+9 (build 20.0.2+9)
OpenJDK 64-Bit Server VM Temurin-20.0.2+9 (build 20.0.2+9, mixed mode, sharing)
Microsoft Windows 10 Pro 10.0.19045
The text was updated successfully, but these errors were encountered: