eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
164 stars 130 forks source link

deprecation markers with since > BREE are not shown in Problems view but in Editor #2873

Closed jukzi closed 1 week ago

jukzi commented 2 months ago

example: org.eclipse.e4.ui.css.swt.helpers.CSSSWTImageHelper shows a warning The constructor URL(String) is deprecated since version 20 in the editor but not in the Problems View. Even if i configure the warning to be an error it is not shown in the Problems view while compile warings/errors of other type in the same file are shown. image The project is configured to have 17 compliance. When i change the the compliance level to 21 then both editor and problem view are consistently showning the marker. image

I expect the warning in the editor to match the warnings in the problems view, no matter which compliance level i selected - shouldn't i?

jjohnstn commented 2 months ago

I have a fix for this in jdt.core.

stephan-herrmann commented 1 week ago

I've filed #3168 for the core problem, but as mentioned there, I don't know if solving that one is actually worth the effort ...