eclipse-jdt / eclipse-jdt/eclipse.jdt.ui

Show deprecation notice in deprecation warnings

Open
#809 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
59
Forks
127
Avg merge
22h 47m
Merged PRs (30d)
28

Description

If deprecated elements (methods, classes, fields, etc.) are referenced a deprecation warning is created (by default) and the info-box that pops up when one hovers over the element shows generic information:
![grafik](https://github.com/eclipse-jdt/eclipse.jdt.core/assets/44067969/844c307d-2cb1-4a17-a637-ce6b8ba00af6)

The deprecation notice (the value of the `@deprecated` tag in the java-doc), which usually contains more details about the replacement and reasoning for the deprecation, is currently only accessible when opening the java-doc of the deprecated element:
![grafik](https://github.com/eclipse-jdt/eclipse.jdt.core/assets/44067969/349da56e-5843-4650-b8ca-7131c80ed3ba)

It would be convenient if the deprecation notice (the value of the `@deprecated` tag in the java-doc) would also be displayed directly in that info box when one hovers over the deprecation warning in the next paragraph. Usually it contains information about possible replacements.

Since the warning is probably issued by the compiler and shouldn't contain the deprecation notice when building from the CLI, this probably should only be done in jdt.ui.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.