Skip to content

Cleanup of deprecation handling #4572

@stephan-herrmann

Description

@stephan-herrmann

Post-hoc summary of a "spring cleaning" of how JDT deals with deprecation.

This started out with @SuppressWarnings("deprecation") becoming unused

Investigation of #4553 revealed that ecj has been reporting far too many deprecation warnings all the time:

Next we observed, that JDT/UI would still show members as deprecated (strike-through) that according to the corrected concept aren't deprecated.

Another bug was discovered regarding "friendly" code locations not getting the warning:

To support users in getting optimal visibility of deprecation despite #4564 a new compiler warning was proposed:

Found a situation where deprecation warnings are missing:

Also preferences controlling deprecation warnings seem to be evaluated inconsistently:

Request for documentation

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions